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:
19
19
20
20
21
21
# If release-please created a release, publish to npm
22
- - if : true
22
+ - if : steps.release.outputs.release_created
23
23
uses : actions/checkout@v4
24
- - if : true
24
+ - if : steps.release.outputs.release_created
25
25
name : actions/setup
26
26
uses : ./.github/actions/setup
27
- - if : true
27
+ - if : steps.release.outputs.release_created
28
28
run : npm pack
29
29
shell : bash
30
- - if : true
30
+ - if : steps.release.outputs.release_created
31
31
name : Get release version and release package file name
32
32
run : |
33
33
PACKAGE_VERSION=$(jq '.version' package.json | tr -d '"')
34
34
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> "$GITHUB_ENV"
35
35
echo "PACKAGE_FILE=bson-${PACKAGE_VERSION}.tgz" >> "$GITHUB_ENV"
36
- - if : true
36
+ - if : steps.release.outputs.release_created
37
37
name : Create detached signature
38
38
uses : mongodb-labs/drivers-github-tools/garasign/gpg-sign@main
39
39
with :
42
42
garasign_password : ${{ secrets.GRS_CONFIG_USER1_PASSWORD }}
43
43
artifactory_username : ${{ secrets.ARTIFACTORY_USER }}
44
44
artifactory_password : ${{ secrets.ARTIFACTORY_PASSWORD }}
45
- - if : true
45
+ - if : steps.release.outputs.release_created
46
46
name : " Upload artifacts"
47
47
uses : actions/upload-artifact@v4
48
48
with :
51
51
${{ env.PACKAGE_FILE }}
52
52
${{ env.PACKAGE_FILE }}.sig
53
53
retention-days : 3
54
- - if : false
54
+ - if : steps.release.outputs.release_created
55
55
run : npm publish --provenance
56
56
env :
57
57
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments