Skip to content

Commit

Permalink
fix: fix publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jviide committed Feb 29, 2024
1 parent 8c1606e commit 6b55561
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,41 @@ on:
types: [created]

jobs:
build:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm test
- run: npx jsr publish
publish-npm:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
registry-url: https://registry.npmjs.org/
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-jsr:
needs: check
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- run: npx jsr publish

0 comments on commit 6b55561

Please sign in to comment.