Skip to content

Commit

Permalink
ci: enable npm provenance (#818)
Browse files Browse the repository at this point in the history
* ci: enable npm provenance

* ci: use nodejs 20 on publish

* chore: up dev deps
  • Loading branch information
antongolub committed May 23, 2024
1 parent ae55549 commit 3993565
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 115 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- run: npm ci
- run: npm test
env:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
checks: read
statuses: write
contents: write
packages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- run: npm ci
- run: npm test
env:
FORCE_COLOR: 3
- run: echo "//wombat-dressing-room.appspot.com/:_authToken=$AUTH_TOKEN" >> .npmrc
env:
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
- run: npm publish
- run: npm publish --provenance
Loading

0 comments on commit 3993565

Please sign in to comment.