Skip to content

Commit c1ffa27

Browse files
committed
changed perms to write and added gh token to upload step
1 parent d829981 commit c1ffa27

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/npm-publish.yml

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

77
permissions:
88
id-token: write
9-
contents: read
9+
contents: write
1010

1111
jobs:
1212
test:
@@ -63,6 +63,8 @@ jobs:
6363

6464
- name: Upload release assets
6565
uses: softprops/action-gh-release@v1
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6668
with:
6769
files: |
6870
dist/bundle.js

scripts/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ PACKAGE_NAME=$(cat package.json | jq -r '.name')
77
PUBLISH_VERSION=$(cat package.json | jq -r '.version')
88
echo "Publishing ${PACKAGE_NAME}@$PUBLISH_VERSION"
99

10-
npm publish --access public
10+
npm publish --access public --provenance

0 commit comments

Comments
 (0)