Skip to content

Commit 6e681cd

Browse files
authored
Fix publish workflow (#297)
1 parent 6f40503 commit 6e681cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@ jobs:
2828
run: bun run build
2929

3030
- name: Publish to NPM
31-
run: npm publish --dist-tag $(npm pkg get version | tr -d '"' | grep -qoE "^\d+\.\d+\.\d+$" && echo 'latest' || echo 'beta')
31+
run: npm publish --tag $(npm pkg get version | tr -d '"' | grep -qoE "^\d+\.\d+\.\d+$" && echo 'latest' || echo 'beta')
3232
env:
3333
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3434
jsr:
3535
name: JSR
3636
runs-on: ubuntu-latest
37+
permissions:
38+
contents: read
39+
id-token: write
3740
steps:
3841
- name: Install Bun
3942
uses: oven-sh/setup-bun@v2

0 commit comments

Comments
 (0)