Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
permissions:
contents: read
packages: write
id-token: write

jobs:
publish:
Expand Down Expand Up @@ -38,3 +39,12 @@ jobs:
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Prepare Node.js environment for npm registry
uses: actions/setup-node@v6
Comment thread
frankieyan marked this conversation as resolved.
Comment thread
frankieyan marked this conversation as resolved.
with:
node-version-file: .node-version
registry-url: https://registry.npmjs.org/

- name: Publish package to npm registry
run: npm publish --access public --provenance
Comment thread
frankieyan marked this conversation as resolved.