ci: add NPM_CONFIG_PROVENANCE on release workflow #169
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 }} | |
env: | |
NPM_CONFIG_PROVENANCE: true | |
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: npm audit signatures | |
- name: Release | |
env: | |
GH_TOKEN: ${{ secrets.DUCKTORS_PAT }} | |
NPM_TOKEN: ${{ secrets.DUCKTORS_NPM_TOKEN }} | |
run: pnpm dlx semantic-release |