Skip to content

Publish

Publish #12

Workflow file for this run

name: Realease
on:
workflow_run:
workflows: ["test"]
types:
- completed
jobs:
build:
name: Build
runs-on: ubuntu-latest
if: ${{ contains(github.ref, 'refs/tags/v*.*.*')}}
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Build
run: bun ./build.ts
release:
name: Release
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release