don't specify version #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [5.x] | |
workflow_dispatch: {} | |
permissions: | |
contents: write | |
pull-requests: write | |
id-token: write | |
name: release-5x | |
jobs: | |
release_please: | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
steps: | |
- id: release | |
uses: google-github-actions/release-please-action@v4 | |
with: | |
target-branch: 5.x | |
compress-sign-and-upload: | |
needs: [release_please] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: actions/setup | |
uses: ./.github/actions/setup | |
- name: actions/compress_sign_and_upload | |
uses: ./.github/actions/compress_sign_and_upload | |
with: | |
garasign_username: ${{ secrets.GRS_CONFIG_USER1_USERNAME }} | |
garasign_password: ${{ secrets.GRS_CONFIG_USER1_PASSWORD }} | |
artifactory_username: ${{ secrets.ARTIFACTORY_USER }} | |
artifactory_password: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
- run: npm publish --provenance --tag=5x | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
generate_sarif_report: | |
environment: release | |
runs-on: ubuntu-latest | |
needs: [release_please] | |
permissions: | |
# required for all workflows | |
security-events: write | |
id-token: write | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up drivers-github-tools | |
uses: mongodb-labs/drivers-github-tools/setup@v2 | |
with: | |
aws_region_name: us-east-1 | |
aws_role_arn: ${{ secrets.aws_role_arn }} | |
aws_secret_id: ${{ secrets.aws_secret_id }} | |
- name: "Generate Sarif Report" | |
uses: "alcaeus/drivers-github-tools/code-scanning-export@export-code-scanning-report" | |
with: | |
ref: 5.x | |
output-file: sarif-report.json | |
- name: Get release version and release package file name | |
id: get_version | |
shell: bash | |
run: | | |
package_version=$(jq --raw-output '.version' package.json) | |
echo "package_version=${package_version}" >> "$GITHUB_OUTPUT" | |
- name: actions/publish_asset_to_s3 | |
uses: mongodb-labs/drivers-github-tools/node/publish_asset_to_s3 | |
with: | |
version: ${{ steps.get_version.outputs.package_version }} | |
product_name: js-bson | |
file: sarif-report.json | |
dry_run: ${{ needs.release_please.outputs.release_created == '' }} |