@@ -32,23 +32,20 @@ jobs:
32
32
runs-on : ubuntu-latest
33
33
steps :
34
34
- uses : actions/checkout@v4
35
+
35
36
- name : actions/setup
36
37
uses : ./.github/actions/setup
37
- - name : Get release version and release package file name
38
- id : get_version
39
- shell : bash
40
- run : |
41
- package_version=$(jq --raw-output '.version' package.json)
42
- echo "package_version=${package_version}" >> "$GITHUB_OUTPUT"
43
- echo "package_file=bson-${package_version}.tgz" >> "$GITHUB_OUTPUT"
38
+
39
+ - name : Load version and package info
40
+ uses : baileympearson/drivers-github-tools/node/get_version_info@add-signing-env-action-for-node
44
41
45
42
- name : actions/compress_sign_and_upload
46
- uses : ./. github/actions/compress_sign_and_upload
43
+ uses : baileympearson/drivers- github-tools/node/sign_js_only_package@add-signing-env-action-for-node
47
44
with :
48
45
aws_role_arn : ${{ secrets.AWS_ROLE_ARN }}
49
- aws_region_name : ' us-east-1'
46
+ aws_region_name : us-east-1
50
47
aws_secret_id : ${{ secrets.AWS_SECRET_ID }}
51
- npm_package_name : ' bson'
48
+ npm_package_name : bson
52
49
dry_run : ${{ needs.release_please.outputs.release_created == '' }}
53
50
54
51
- name : Copy sbom file to release assets
@@ -58,17 +55,17 @@ jobs:
58
55
- name : Generate authorized pub report
59
56
uses : mongodb-labs/drivers-github-tools/full-report@v2
60
57
with :
61
- release_version : ${{ steps.get_version.outputs .package_version }}
58
+ release_version : ${{ env.package_version .package_version }}
62
59
product_name : bson
63
60
sarif_report_target_ref : 5.x
64
61
third_party_dependency_tool : n/a
65
62
# <package> and <package>.sig
66
- dist_filenames : ${{ steps.get_version.outputs .package_file }}*
63
+ dist_filenames : ${{ env.package_version .package_file }}*
67
64
token : ${{ github.token }}
68
65
sbom_file_name : sbom.json
69
66
- uses : mongodb-labs/drivers-github-tools/upload-s3-assets@v2
70
67
with :
71
- version : ${{ steps.get_version.outputs .package_version }}
68
+ version : ${{ env.package_version .package_version }}
72
69
product_name : bson
73
70
dry_run : ${{ needs.release_please.outputs.release_created == '' }}
74
71
0 commit comments