We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fbf06e commit 9654fabCopy full SHA for 9654fab
.github/workflows/publish.yml
@@ -2,18 +2,17 @@ name: npm publish
2
on:
3
release:
4
types: [created]
5
+permissions:
6
+ contents: read
7
+ id-token: write
8
jobs:
- build:
9
+ publish:
10
runs-on: ubuntu-latest
11
steps:
- - uses: actions/checkout@v2
- # Setup .npmrc file to publish to npm
- - uses: actions/setup-node@v1
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-node@v4
14
with:
- node-version: '14.x'
15
+ node-version: 'lts/*'
16
registry-url: 'https://registry.npmjs.org'
- - run: npm install
- # Publish to npm
17
- - run: npm publish --access public
18
- env:
19
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+ - run: npm ci
+ - run: npm publish --provenance --access public
0 commit comments