Skip to content

ci: publish with npm provenance statement #1484

ci: publish with npm provenance statement

ci: publish with npm provenance statement #1484

Workflow file for this run

name: ci
on:
push:
branches:
- master
- next
pull_request:
branches:
- master
- next
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20
- 22
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
release:
runs-on: ubuntu-latest
needs: test
permissions:
id-token: write # for npm provenance
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}