We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 502e22e commit cb06a14Copy full SHA for cb06a14
1 file changed
.github/workflows/publish.yml
@@ -6,10 +6,14 @@ on:
6
- master
7
8
jobs:
9
- build:
+ publish:
10
+ environment: publish
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
runs-on: ubuntu-latest
15
steps:
- - uses: actions/checkout@v3
16
+ - uses: actions/checkout@v5
17
with:
18
submodules: recursive
19
@@ -25,13 +29,11 @@ jobs:
25
29
26
30
- name: Setup Node
27
31
if: steps.check.outputs.changed == 'true'
28
- uses: actions/setup-node@v3
32
+ uses: actions/setup-node@v4
33
34
node-version-file: '.nvmrc'
35
registry-url: https://registry.npmjs.org/
36
37
- name: Publish the package to NPM
38
- run: cd lib && npm publish
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # NPM will automatically authenticate with this
39
+ run: cd lib && npm publish --provenance
0 commit comments