Skip to content

Commit 18b18de

Browse files
committed
fix npm publish action
1 parent cce88cb commit 18b18de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
permissions:
88
id-token: write # Required for OIDC https://docs.npmjs.com/trusted-publishers
9+
contents: read
910

1011
jobs:
1112
dry-run:
@@ -16,6 +17,7 @@ jobs:
1617
- uses: actions/setup-node@v4
1718
with:
1819
node-version: "22"
20+
registry-url: 'https://registry.npmjs.org'
1921
- run: npm ci
2022
- name: Check formatting
2123
run: make format-check
@@ -41,4 +43,4 @@ jobs:
4143
- name: Update npm
4244
run: npm install -g npm@latest
4345
- name: Publish
44-
run: npm publish
46+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)