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.
This commit is contained in:
Alex Yang authored and GitHub committed 2026-03-18 11:59:25 +08:00
1 parent d6222ff932
commit de5495bdd7
1 file changed
+29
+29
View File
@@ -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