We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30f2178 commit 86f147aCopy full SHA for 86f147a
1 file changed
.github/workflows/release.yml
@@ -10,6 +10,7 @@ jobs:
10
runs-on: ubuntu-latest
11
permissions:
12
contents: write
13
+ id-token: write
14
15
steps:
16
- uses: actions/checkout@v4
@@ -43,9 +44,14 @@ jobs:
43
44
echo "changed=false" >> "$GITHUB_OUTPUT"
45
fi
46
47
+ - name: Setup npm for publishing
48
+ if: steps.version.outputs.changed == 'true'
49
+ run: |
50
+ echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" > ~/.npmrc
51
+
52
- name: Publish to npm
53
if: steps.version.outputs.changed == 'true'
- run: npm publish --access public
54
+ run: npm publish --access public --provenance
55
56
- name: Create GitHub Release
57
0 commit comments