Skip to content

release

release #1

Workflow file for this run

name: release
on:
release:
types: [created]
jobs:
pre-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: install dependencies
run: bun i
- name: test code and get coverage
run: bun run test
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun run build
publish-npm:
needs: build

Check failure on line 21 in .github/workflows/publish-npm.yml

View workflow run for this annotation

GitHub Actions / release

Invalid workflow file

The workflow is not valid. .github/workflows/publish-npm.yml (Line: 21, Col: 12): Job 'publish-npm' depends on unknown job 'build'.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}