We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c60ae8 commit ab8db55Copy full SHA for ab8db55
.github/workflows/publish_npmjs.yaml
@@ -1,20 +1,24 @@
1
-# After new release is published on github, publish it to npmjs
2
-name: Publish on npmjs
3
-
+name: Publish on npm
4
on:
5
release:
6
types: [published]
7
+permissions:
+ id-token: write
8
+ contents: read
9
+
10
jobs:
11
publish:
12
runs-on: ubuntu-latest
13
+ environment: publish
14
15
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-node@v1
16
+ - uses: actions/checkout@v4
17
18
+ - uses: actions/setup-node@v4
19
with:
- node-version: 18
20
+ node-version: 24
21
registry-url: 'https://registry.npmjs.org'
22
23
- run: npm ci
- - run: npm publish --access public
- env:
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
24
+ - run: npm publish --provenance --access public
0 commit comments