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 1bf9691 commit 9d7e39fCopy full SHA for 9d7e39f
1 file changed
.github/workflows/publish.yml
@@ -7,13 +7,12 @@ on:
7
8
permissions:
9
contents: read
10
+ id-token: write
11
12
jobs:
13
publish:
14
if: ${{ github.event.release.prerelease == false }}
15
runs-on: ubuntu-latest
- env:
16
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
17
steps:
18
- name: Checkout repository
19
uses: actions/checkout@v4
@@ -26,13 +25,6 @@ jobs:
26
25
node-version: "20"
27
registry-url: "https://registry.npmjs.org"
28
29
- - name: Validate npm token
30
- run: |
31
- if [[ -z "$NODE_AUTH_TOKEN" ]]; then
32
- echo "NPM_TOKEN secret is not configured" >&2
33
- exit 1
34
- fi
35
-
36
- name: Install dependencies
37
run: npm ci
38
@@ -57,4 +49,4 @@ jobs:
57
49
npm version "${{ steps.release_version.outputs.version }}" --no-git-tag-version
58
50
59
51
- name: Publish to npm
60
- run: npm publish
52
+ run: npm publish --access public --provenance
0 commit comments