feat(NODE-5940): cache the AWS credentials provider in the MONGODB-AW… #31
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 | |
steps: | |
- id: release | |
uses: google-github-actions/release-please-action@v3 | |
with: | |
release-type: node | |
package-name: mongodb | |
# Example: chore(main): release 5.7.0 [skip-ci] | |
# ${scope} - parenthesis included, base branch name | |
pull-request-title-pattern: 'chore${scope}: release ${version} [skip-ci]' | |
pull-request-header: 'Please run the release_notes action before releasing to generate release highlights' | |
changelog-path: HISTORY.md | |
default-branch: 5.x | |
# If release-please created a release, publish to npm | |
- if: ${{ steps.release.outputs.release_created }} | |
uses: actions/checkout@v3 | |
- if: ${{ steps.release.outputs.release_created }} | |
name: actions/setup | |
uses: ./.github/actions/setup | |
- if: ${{ steps.release.outputs.release_created }} | |
run: npm publish --provenance --tag=5x | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |