Skip to content

chore(NODE-6033): sync release flows and add release-please files (#4… #36

chore(NODE-6033): sync release flows and add release-please files (#4…

chore(NODE-6033): sync release flows and add release-please files (#4… #36

Workflow file for this run

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@v4
with:
target-branch: 5.x
# If release-please created a release, publish to npm
- if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
- 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 }}