Skip to content

Commit

Permalink
fix: cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ytkimirti committed Sep 30, 2024
1 parent 1d2c853 commit 67ef78d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,19 @@ jobs:
- name: Build
run: bun run build

- name: Add npm token
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc
- name: Set NPM_TOKEN
run: npm config set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}

- name: Publish release candidate
if: "github.event.release.prerelease"
run: npm publish --access public --tag=canary
run: |
npm pkg delete scripts.prepare
npm publish --access public --tag=canary
working-directory: ./dist

- name: Publish
if: "!github.event.release.prerelease"
run: npm publish --access public
run: |
npm pkg delete scripts.prepare
npm publish --access public
working-directory: ./dist

0 comments on commit 67ef78d

Please sign in to comment.