name: Release on: push: tags: - 'v*' jobs: release: runs-on: ubuntu-latest permissions: contents: write id-token: write steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: '22' registry-url: 'https://registry.npmjs.org' - run: npm install -g npm@latest - run: npm ci - run: npm test - run: npm publish --provenance --access public # Pinned to a commit rather than a tag: this job holds the npm # trusted-publishing identity and a write-scoped token, so the third-party # code it runs should not be able to change under a moved tag. - uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2 with: generate_release_notes: true