Prepare Release v21.0.2 using 'release-plan' (#2878) #33
This file contains hidden or 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
| # For every push to the primary branch with .release-plan.json modified, | |
| # runs release-plan. | |
| name: Publish Stable | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| paths: | |
| - '.release-plan.json' | |
| concurrency: | |
| group: publish-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| publish: | |
| name: "NPM Publish" | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| attestations: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| registry-url: 'https://registry.npmjs.org' | |
| - run: npm ci | |
| - name: Build library | |
| run: npm run build_lib | |
| - name: Publish to NPM | |
| run: npx release-plan publish --provenance | |
| env: | |
| GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }} |