Skip to content

Commit f63354d

Browse files
committed
Update npm publish.
1 parent 8e632af commit f63354d

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ on:
1010
jobs:
1111
ci:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
content: read
15+
id-token: write
1316
steps:
1417
- name: Checkout
1518
uses: actions/checkout@v4
1619

1720
- name: Setup NodeJS
1821
uses: actions/setup-node@v4
1922
with:
20-
node-version: '14'
23+
node-version: 20
2124
registry-url: https://registry.npmjs.org
2225

2326
- name: Installing Dependencies
@@ -33,15 +36,5 @@ jobs:
3336
run: npm run test
3437

3538
- name: Publish NPM
36-
uses: JS-DevTools/npm-publish@v4
3739
if: startsWith(github.ref, 'refs/tags/')
38-
with:
39-
access: public
40-
registry: https://npm.pkg.github.com
41-
42-
- name: Publish GitHub
43-
uses: JS-DevTools/npm-publish@v4
44-
if: startsWith(github.ref, 'refs/tags/')
45-
with:
46-
access: public
47-
registry: https://npm.pkg.github.com
40+
run: npm publish --provenance

0 commit comments

Comments
 (0)