Skip to content
Merged
Changes from all 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
12 changes: 2 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,14 @@ jobs:
env: { CI: true }

# npm publish
- name: Set npm auth
run: |
npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to npm
run: |
VERSION=$(node -p "require('./package.json').version")
if [[ "$VERSION" == *-* ]]; then
pnpm publish --access public --no-git-checks --tag next
pnpm publish --access public --provenance --tag next
else
pnpm publish --access public --no-git-checks
pnpm publish --access public --provenance
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# JSR publish (OIDC, no secret needed once linked)
- name: Publish to JSR
Expand Down