Skip to content

Commit 70e928c

Browse files
committed
ci: publish with pkg.pr.new
1 parent 4ff48e7 commit 70e928c

File tree

3 files changed

+319
-24
lines changed

3 files changed

+319
-24
lines changed

.github/workflows/release-nightly.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions: {}
12+
13+
jobs:
14+
release-nightly:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- run: npm i -g --force corepack && corepack enable
19+
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
20+
with:
21+
node-version: lts/*
22+
cache: "pnpm"
23+
24+
- name: Install dependencies
25+
run: pnpm install
26+
27+
- name: Prepare build environment
28+
run: pnpm dev:prepare
29+
30+
- run: pnpm build
31+
32+
- name: publish nightly release
33+
run: pnpm pkg-pr-new publish --compact

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"knip": "5.47.0",
6666
"lint-staged": "15.5.0",
6767
"mkdist": "2.3.0",
68+
"pkg-pr-new": "^0.0.42",
6869
"simple-git-hooks": "2.12.1",
6970
"typescript": "5.8.3",
7071
"unbuild": "3.5.0",

0 commit comments

Comments
 (0)