Skip to content

Commit

Permalink
fix(ci): publish npm from /npm directory
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Aug 6, 2024
1 parent 9daaa46 commit 1efa30f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
bun-version: 1.1.12

- name: gzip (bytes)
run: |
Expand Down Expand Up @@ -80,11 +80,13 @@ jobs:
- name: "Publish → npm"
if: ${{ !contains(github.ref, '-next.') }}
run: npm publish --provenance --access public
working-directory: ./npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: "Publish → npm (pre-release)"
if: ${{ contains(github.ref, '-next.') }}
run: npm publish --tag next --provenance --access public
working-directory: ./npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 1efa30f

Please sign in to comment.