ci: unify github actions (#261)

i had to work hard to release this
This commit is contained in:
David 2024-09-04 21:13:11 -05:00 committed by GitHub
parent 29f7b769e1
commit f7c8b437e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 56 deletions

View File

@ -1,4 +1,4 @@
name: Biome Check
name: Build, Lint, Format & Publish
on:
push:
@ -42,3 +42,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUSKY: 0
- name: Publish in pkg.pr.new
run: pnpx pkg-pr-new publish
if: github.event.pull_request.head.repo.full_name == github.repository

View File

@ -1,25 +0,0 @@
name: Publish Any Commit
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install --frozen-lockfile
- run: pnpx pkg-pr-new publish

View File

@ -1,30 +0,0 @@
name: Transpile code
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Transpile code
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install --frozen-lockfile