ci: add npm provenance support #167
This file contains 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
name: Release | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
name: Release | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout | |
with: | |
persist-credentials: false | |
- uses: actions/setup-node@v3 | |
name: Install Node | |
with: | |
node-version: 18 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies | |
run: pnpm audit signatures | |
- name: Release | |
env: | |
GH_TOKEN: ${{ secrets.DUCKTORS_PAT }} | |
NPM_TOKEN: ${{ secrets.DUCKTORS_NPM_TOKEN }} | |
run: pnpm dlx semantic-release |