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 e101396 commit bcf2912Copy full SHA for bcf2912
.github/workflows/release.yml
@@ -3,6 +3,10 @@ on:
3
release:
4
types: [published]
5
6
+permissions:
7
+ id-token: write # Required for OIDC
8
+ contents: read
9
+
10
jobs:
11
publish:
12
@@ -14,6 +18,7 @@ jobs:
14
18
- name: Use Node.js
15
19
uses: actions/setup-node@v6
16
20
with:
21
+ node-version: '24'
17
22
registry-url: 'https://registry.npmjs.org'
23
24
- name: Install dependencies
@@ -25,6 +30,13 @@ jobs:
25
30
- name: Test
26
31
run: npm test
27
32
28
- - run: npm publish
29
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33
+ - uses: step-security/wait-for-secrets@v1
34
+ id: wait-for-secrets
35
+ with:
36
+ secrets: |
37
+ OTP:
38
+ name: 'OTP to publish package'
39
+ description: 'OTP from authenticator app'
40
41
+ - name: Publish
42
+ run: npm publish --otp ${{ steps.wait-for-secrets.outputs.OTP }}
0 commit comments