Skip to content

Commit

Permalink
add set public=false if dev-release
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Jan 30, 2025
1 parent 0a5e569 commit 893a693
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
run: |
ls -la
pwd
CLI_VERSION=$(cat cxAstScan/node_modules/@CheckmarxDev/ast-cli-javascript-wrapper-runtime-cli/checkmarx-ast-cli.version | grep -Eo '^[0-9]+\.[0-9]+\.[0-9]+')
CLI_VERSION=$(cat ./cxAstScan/node_modules/@CheckmarxDev/ast-cli-javascript-wrapper-runtime-cli/checkmarx-ast-cli.version | grep -Eo '^[0-9]+\.[0-9]+\.[0-9]+')
echo "CLI version being packed is $CLI_VERSION"
echo "CLI_VERSION=$CLI_VERSION" >> $GITHUB_ENV
echo "::set-output name=CLI_VERSION::$CLI_VERSION"
Expand All @@ -95,7 +95,13 @@ jobs:
cat <<< $(jq ".version.Major = ${{ env.MAJOR_VERSION }}" ./cxAstScan/task.json) > ./cxAstScan/task.json
cat <<< $(jq ".version.Minor = ${{ env.MINOR_VERSION }}" ./cxAstScan/task.json) > ./cxAstScan/task.json
cat <<< $(jq ".version.Patch = ${{ env.PATCH_VERSION }}" ./cxAstScan/task.json) > ./cxAstScan/task.json
- name: Set public false if dev
run: |
if [ "${{ inputs.dev }}" == "true" ]; then
cat <<< $(jq ".public = false" ./vss-extension.json) > ./vss-extension.json
fi
- name: Create extension
run: tfx extension create --manifest-globs vss-extension.json

Expand Down

0 comments on commit 893a693

Please sign in to comment.