From 4613c588a025031f8c36d08e3ee112a8de674150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Tue, 15 Oct 2024 18:48:32 +0300 Subject: [PATCH] build: set up `pkg.pr.new` (#105) --- .github/workflows/nodejs.yml | 9 +++++++-- .github/workflows/release-commits.yml | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release-commits.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 61f12fa..513f219 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,7 +1,12 @@ -on: [push, pull_request] - name: CI +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + jobs: test: name: Test diff --git a/.github/workflows/release-commits.yml b/.github/workflows/release-commits.yml new file mode 100644 index 0000000..5115ac1 --- /dev/null +++ b/.github/workflows/release-commits.yml @@ -0,0 +1,25 @@ +name: Publish Any Commit + +on: [push, pull_request] + +jobs: + publish: + name: Publish commit + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js 20.x + uses: actions/setup-node@v1 + with: + node-version: 20.x + + - uses: pnpm/action-setup@v2 + + - name: Install Dependencies + run: pnpm install + + - name: Build + run: pnpm build + + - run: pnpx pkg-pr-new publish --compact