Skip to content

Commit b2fe0f2

Browse files
committed
ci: add pkg.pr.new workflow
1 parent ed8ad9d commit b2fe0f2

3 files changed

Lines changed: 125 additions & 45 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,27 @@ jobs:
8989
path: docs/playwright-report
9090
retention-days: 7
9191

92+
preview:
93+
if: github.event_name == 'pull_request' || github.event_name == 'push'
94+
runs-on: ubuntu-latest
95+
96+
steps:
97+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
98+
- run: corepack enable
99+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
100+
with:
101+
node-version: lts/-1
102+
cache: pnpm
103+
104+
- name: 📦 Install dependencies
105+
run: pnpm install
106+
107+
- name: 🛠 Build project
108+
run: pnpm build
109+
110+
- name: 📤 Publish preview release
111+
run: pnpm exec pkg-pr-new publish --compact --pnpm
112+
92113
proxy:
93114
runs-on: ubuntu-latest
94115

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"changelogithub": "15.0.5",
4949
"eslint": "10.9.1",
5050
"lint-staged": "17.4.1",
51+
"pkg-pr-new": "0.0.88",
5152
"rou3": "0.9.2",
5253
"simple-git-hooks": "2.14.0",
5354
"tsdown": "0.22.14",

0 commit comments

Comments
 (0)