Skip to content

Commit

Permalink
ci: add npm provenance
Browse files Browse the repository at this point in the history
build: update dependencies
  • Loading branch information
Trickfilm400 committed Jun 13, 2024
1 parent 8abb81b commit 9917eb0
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 398 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,27 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- run: npm ci
- run: npm run build
#- run: npm version prerelease --no-git-tag-version --preid ${{ github.ref_name }}-${{ github.sha }} (using self-versioned package.json from now on)
#### PUBLISH TO NPM ####
- uses: JS-DevTools/npm-publish@v2
- 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@v2
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: https://npm.pkg.github.com
Expand Down
Loading

0 comments on commit 9917eb0

Please sign in to comment.