Skip to content

compine to one file

compine to one file #1

Workflow file for this run

name: Test & Publish
on: [push, pull_request]
jobs:
test:
name: lint & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install
run: bun install
- name: Lint & Fix
run: bun run lint:fix
- name: Test
run: bun test --coverage
- name: Commit Diff
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "auto fix lint errors"
commit_options: "--no-verify"
build:
name: Build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Build
run: bun ./build.ts
publish:
name: Publish
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: action/setup-node@v4
with:
node-version: 20
- name: Publish
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}