We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21576c1 commit c8da67bCopy full SHA for c8da67b
1 file changed
.github/workflows/main.yaml
@@ -4,6 +4,10 @@ on:
4
tags:
5
- '*'
6
7
+permissions:
8
+ id-token: write # Required for OIDC (https://docs.npmjs.com/trusted-publishers)
9
+ contents: read
10
+
11
jobs:
12
publish:
13
runs-on: ubuntu-latest
@@ -15,7 +19,8 @@ jobs:
15
19
- name: Set up Node.js
16
20
uses: actions/setup-node@v4
17
21
with:
18
- node-version: '20'
22
+ node-version: '24'
23
+ registry-url: 'https://registry.npmjs.org'
24
25
- name: Install dependencies
26
run: npm ci
@@ -34,13 +39,9 @@ jobs:
34
39
fi
35
40
36
41
- name: Publish to npm (beta)
37
- env:
38
- NPM_TOKEN: ${{ secrets.NPM_ACCESS_KEY }}
42
if: steps.is_tag_beta.outputs.is_beta == 'true'
43
run: npm publish --tag beta
44
45
- name: Publish to npm
46
if: steps.is_tag_beta.outputs.is_beta == 'false'
47
run: npm publish
0 commit comments