Skip to content

Update CI

Update CI #14

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bun i --frozen-lockfile
- run: bun test
- run: bunx jsr publish --config jsr.json --dry-run
publishNPM:
runs-on: ubuntu-latest
needs: ci

Check failure on line 23 in .github/workflows/jsr.yml

View workflow run for this annotation

GitHub Actions / Publish

Invalid workflow file

The workflow is not valid. .github/workflows/jsr.yml (Line: 23, Col: 12): Job 'publishNPM' depends on unknown job 'ci'. .github/workflows/jsr.yml (Line: 34, Col: 12): Job 'publishJSR' depends on unknown job 'ci'.
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bun install --frozen-lockfile
- run: |
npm config set //registry.npmjs.org/:_authToken ${{secrets.NPM_AUTH_TOKEN}}
npm publish
publishJSR:
runs-on: ubuntu-latest
needs: ci
permissions:
contents: read
id-token: write
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bun install --frozen-lockfile
- run: bunx jsr publish --config jsr.json