Skip to content

Commit 34e269e

Browse files
update 5.x script as well
1 parent e1ee129 commit 34e269e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release-5.x.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,33 @@ jobs:
2525
- if: ${{ steps.release.outputs.release_created }}
2626
name: actions/setup
2727
uses: ./.github/actions/setup
28+
- if: steps.release.outputs.release_created
29+
run: npm pack
30+
shell: bash
31+
- if: steps.release.outputs.release_created
32+
name: Get release version and release package file name
33+
run: |
34+
PACKAGE_VERSION=$(jq '.version' package.json | tr -d '"')
35+
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> "$GITHUB_ENV"
36+
echo "PACKAGE_FILE=bson-${PACKAGE_VERSION}.tgz" >> "$GITHUB_ENV"
37+
- if: steps.release.outputs.release_created
38+
name: Create detached signature
39+
uses: mongodb-labs/drivers-github-tools/garasign/gpg-sign@main
40+
with:
41+
filenames: ${{ env.PACKAGE_FILE }}
42+
garasign_username: ${{ secrets.GRS_CONFIG_USER1_USERNAME }}
43+
garasign_password: ${{ secrets.GRS_CONFIG_USER1_PASSWORD }}
44+
artifactory_username: ${{ secrets.ARTIFACTORY_USER }}
45+
artifactory_password: ${{ secrets.ARTIFACTORY_PASSWORD }}
46+
- if: steps.release.outputs.release_created
47+
name: "Upload artifacts"
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: ${{ env.PACKAGE_FILE }}
51+
path: |
52+
${{ env.PACKAGE_FILE }}
53+
${{ env.PACKAGE_FILE }}.sig
54+
retention-days: 3
2855
- if: ${{ steps.release.outputs.release_created }}
2956
run: npm publish --provenance --tag=5x
3057
env:

0 commit comments

Comments
 (0)