Skip to content

[MAJC-71] Fix workflow trigger for publishing releases (#61) #10

[MAJC-71] Fix workflow trigger for publishing releases (#61)

[MAJC-71] Fix workflow trigger for publishing releases (#61) #10

---
name: Publish to npm
on:
push:
branches:
- main
tags:
- v.[0-9]+rc[0-9]+
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use default Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- run: npm ci
- run: npm publish --provenance --access public
env:
NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} # See .npmrc for where this is used.