From 8247ec055597b38c0a675fc178290e996956634e Mon Sep 17 00:00:00 2001 From: Glen Maddern Date: Fri, 30 May 2025 13:27:17 +1000 Subject: [PATCH 1/2] Trying pkg.pr.new --- .github/workflows/publish.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..41a4a0cf --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +name: Publish Any Commit +on: + pull_request: + push: + branches: + - '**' + tags: + - '!**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: npm + + - run: npm ci + - run: npm run build + - run: npx pkg-pr-new publish --compact From d8e7d954ea08cccf261d304a147bc2e7e2dcb7c1 Mon Sep 17 00:00:00 2001 From: Glen Maddern Date: Wed, 2 Jul 2025 10:03:59 +1000 Subject: [PATCH 2/2] Building only on PR pushes, not on every commit This puts in line with the existing `main` workflow. --- .github/workflows/publish.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 41a4a0cf..7024da48 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,11 +1,9 @@ name: Publish Any Commit on: - pull_request: push: branches: - - '**' - tags: - - '!**' + - main + pull_request: jobs: build: