From f7c8b437e96d7773a95d2f88d2ad0c6d1e32f232 Mon Sep 17 00:00:00 2001 From: David <35281350+Drylozu@users.noreply.github.com> Date: Wed, 4 Sep 2024 21:13:11 -0500 Subject: [PATCH] ci: unify github actions (#261) i had to work hard to release this --- .github/workflows/check.yml | 5 ++++- .github/workflows/pkg.yml | 25 ------------------------- .github/workflows/transpile.yml | 30 ------------------------------ 3 files changed, 4 insertions(+), 56 deletions(-) delete mode 100644 .github/workflows/pkg.yml delete mode 100644 .github/workflows/transpile.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f2c8edc..ea70f55 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 diff --git a/.github/workflows/pkg.yml b/.github/workflows/pkg.yml deleted file mode 100644 index 983e91b..0000000 --- a/.github/workflows/pkg.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/transpile.yml b/.github/workflows/transpile.yml deleted file mode 100644 index ea8a428..0000000 --- a/.github/workflows/transpile.yml +++ /dev/null @@ -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