Skip to content

Commit

Permalink
Feature/fix pipeline (#1)
Browse files Browse the repository at this point in the history
United it to one file
  • Loading branch information
CordlessWool authored Jan 10, 2024
1 parent 7fc5b85 commit 365ef19
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 56 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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
if: ${{ contains(github.ref, 'tags/v*.*.*') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node for npm
uses: actions/setup-node@v4
with:
node-version: 20
- name: Publish
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36 changes: 0 additions & 36 deletions .github/workflows/release.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 365ef19

Please sign in to comment.