Skip to content

Commit 6e9a38b

Browse files
committed
Add provance
1 parent b3a2338 commit 6e9a38b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
permissions:
1313
packages: write
1414
contents: write
15+
id-token: write
1516

1617
defaults:
1718
run:
@@ -30,9 +31,9 @@ jobs:
3031
name: Install dependencies
3132
- name: Publish to NPM
3233
run: |
33-
pnpm build && cd dist && npm publish
34-
sed -i -e "s/.*name.*/\t\"name\": \"zustand-sync\",/" package.json && npm publish
35-
sed -i -e "s/.*name.*/\t\"name\": \"sync-zustand\",/" package.json && npm publish
36-
sed -i -e "s/.*name.*/\t\"name\": \"sync-tabs-zustand\",/" package.json && npm publish
34+
pnpm build && cd dist && npm publish --provenance --access public
35+
sed -i -e "s/.*name.*/\t\"name\": \"zustand-sync\",/" package.json && npm publish --provenance --access public
36+
sed -i -e "s/.*name.*/\t\"name\": \"sync-zustand\",/" package.json && npm publish --provenance --access public
37+
sed -i -e "s/.*name.*/\t\"name\": \"sync-tabs-zustand\",/" package.json && npm publish --provenance --access public
3738
env:
3839
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)