Skip to content

Commit

Permalink
ci: 👷 release with provenance statements
Browse files Browse the repository at this point in the history
Signed-off-by: DerZade <[email protected]>
  • Loading branch information
DerZade committed Apr 22, 2024
1 parent 302d62c commit b33f315
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/RELEASE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,24 @@ on:
jobs:
publish_to_npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

- name: Install dependencies
run: npm ci --ignore-scripts

- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
- name: Build app
run: npm run-script build

- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit b33f315

Please sign in to comment.