Skip to content

Commit f5ee981

Browse files
ci(publish): use trusted publishing
Reference: https://docs.npmjs.com/trusted-publishers [skip ci]
1 parent 76e3a72 commit f5ee981

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# reference: https://docs.npmjs.com/generating-provenance-statements
1+
# reference: https://docs.npmjs.com/trusted-publishers#for-github-actions
22

33
name: Publish
44

@@ -32,6 +32,4 @@ jobs:
3232
run: npm run compile --workspaces --if-present
3333

3434
- name: Publish package
35-
run: npm publish --workspace=${GITHUB_REF_NAME%@*} --provenance --access public
36-
env:
37-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
run: npm publish --workspace=${GITHUB_REF_NAME%@*} --access public

0 commit comments

Comments
 (0)