Skip to content

ci: add npm provenance #10

ci: add npm provenance

ci: add npm provenance #10

Workflow file for this run

on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci --audit=false --fund=false
- run: npm run build
- run: npm version prerelease --no-git-tag-version --preid ${{ github.ref_name }}-${{ github.sha }}
#### PUBLISH TO NPM ####
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
tag: latest
provenance: true
#### PUBLISH TO GITHUB NPM ####
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: https://npm.pkg.github.com
access: public
tag: beta