Skip to content

Commit

Permalink
Chore: Use npm provenance and use node v18 for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
doteric authored Jun 21, 2023
1 parent 0df5f6b commit 4a2a4fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ on:
jobs:
build_and_publish:
runs-on: ubuntu-latest
permissions:
id-token: write
environment: npm
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: |
npm config set git-tag-version=false
npm version ${{ github.event.release.tag_name }}
npm ci
npm run compile
npm publish
npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '**'

env:
NODE_VERSION: '16'
NODE_VERSION: '18'

jobs:
install:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v18

0 comments on commit 4a2a4fd

Please sign in to comment.