File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,21 +19,21 @@ jobs:
1919
2020
2121 # If release-please created a release, publish to npm
22- - if : true
22+ - if : steps.release.outputs.release_created
2323 uses : actions/checkout@v4
24- - if : true
24+ - if : steps.release.outputs.release_created
2525 name : actions/setup
2626 uses : ./.github/actions/setup
27- - if : true
27+ - if : steps.release.outputs.release_created
2828 run : npm pack
2929 shell : bash
30- - if : true
30+ - if : steps.release.outputs.release_created
3131 name : Get release version and release package file name
3232 run : |
3333 PACKAGE_VERSION=$(jq '.version' package.json | tr -d '"')
3434 echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> "$GITHUB_ENV"
3535 echo "PACKAGE_FILE=bson-${PACKAGE_VERSION}.tgz" >> "$GITHUB_ENV"
36- - if : true
36+ - if : steps.release.outputs.release_created
3737 name : Create detached signature
3838 uses : mongodb-labs/drivers-github-tools/garasign/gpg-sign@main
3939 with :
4242 garasign_password : ${{ secrets.GRS_CONFIG_USER1_PASSWORD }}
4343 artifactory_username : ${{ secrets.ARTIFACTORY_USER }}
4444 artifactory_password : ${{ secrets.ARTIFACTORY_PASSWORD }}
45- - if : true
45+ - if : steps.release.outputs.release_created
4646 name : " Upload artifacts"
4747 uses : actions/upload-artifact@v4
4848 with :
5151 ${{ env.PACKAGE_FILE }}
5252 ${{ env.PACKAGE_FILE }}.sig
5353 retention-days : 3
54- - if : false
54+ - if : steps.release.outputs.release_created
5555 run : npm publish --provenance
5656 env :
5757 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments