We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 093e7af commit 10b4982Copy full SHA for 10b4982
.github/workflows/publish.yml
@@ -1,8 +1,16 @@
1
+# https://docs.npmjs.com/trusted-publishers#step-2-configure-your-cicd-workflow
2
name: Test, Lint, Release and Publish
3
+
4
on:
5
push:
6
branches:
7
- main
8
9
+# https://docs.npmjs.com/trusted-publishers
10
+permissions:
11
+ id-token: write # Required for OIDC
12
+ contents: read
13
14
jobs:
15
main:
16
name: Release and publish Node package
@@ -58,8 +66,4 @@ jobs:
58
66
59
67
- name: Publish new version
60
68
if: env.VERSION_CHANGED == 'true'
61
- # Note: Setting NODE_AUTH_TOKEN as job|workspace wide env var won't work
62
- # as it appears actions/setup-node sets own value
63
- env:
64
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
65
69
run: npm publish --verbose
0 commit comments