From de5495bdd7678d9aaa291a6867b558dac8a522e0 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Tue, 17 Mar 2026 20:59:25 -0700 Subject: [PATCH] ci: add pkg.pr.new workflow for continuous package previews (#46) Publishes preview versions of the package on every push and PR, allowing reviewers to install and test exact commit builds. --- .github/workflows/pkg-pr-new.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/pkg-pr-new.yml diff --git a/.github/workflows/pkg-pr-new.yml b/.github/workflows/pkg-pr-new.yml new file mode 100644 index 0000000..2bbbe97 --- /dev/null +++ b/.github/workflows/pkg-pr-new.yml @@ -0,0 +1,29 @@ +name: Publish Any Commit + +on: + push: + branches: [main, dev] + pull_request: + branches: [main, dev] + +permissions: {} + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Publish to pkg.pr.new + run: npx pkg-pr-new publish