Skip to content

Commit cf31a28

Browse files
committed
ci: add nightly
1 parent a5f4f67 commit cf31a28

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

.github/workflows/nightly.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: nightly
2+
"on":
3+
push:
4+
jobs:
5+
publish:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: actions/setup-node@v4
10+
with:
11+
node-version: 22
12+
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
13+
- run: pnpm i
14+
- run: pnpm build
15+
16+
# canary
17+
- run: |
18+
pnpm -C packages/plugin-rsc i react-server-dom-webpack@canary
19+
pnpm i --no-frozen-lockfile
20+
pnpm -C packages/plugin-rsc build
21+
cp -rf packages/plugin-rsc packages/plugin-rsc-canary
22+
sed -i 's#"name": "@vitejs/plugin-rsc"#"name": "@vitejs/plugin-rsc-canary"#' packages/plugin-rsc-canary/package.json
23+
24+
# experimental
25+
- run: |
26+
pnpm -C packages/plugin-rsc i react-server-dom-webpack@experimental
27+
pnpm i --no-frozen-lockfile
28+
pnpm -C packages/plugin-rsc build
29+
cp -rf packages/plugin-rsc packages/plugin-rsc-experimental
30+
sed -i 's#"name": "@vitejs/plugin-rsc"#"name": "@vitejs/plugin-rsc-experimental"#' packages/plugin-rsc-experimental/package.json
31+
32+
- run: |
33+
pnpx pkg-pr-new publish --comment=off \
34+
packages/plugin-rsc-canary \
35+
packages/plugin-rsc-experimental \

packages/plugin-rsc/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
"tsc": "tsc -b ./tsconfig.json ./e2e/tsconfig.json ./examples/*/tsconfig.json",
3535
"tsc-dev": "pnpm tsc --watch --preserveWatchOutput",
3636
"dev": "tsdown --sourcemap --watch src",
37-
"build": "tsdown",
38-
"prepack": "tsdown --clean"
37+
"build": "tsdown"
3938
},
4039
"dependencies": {
4140
"@mjackson/node-fetch-server": "^0.6.1",

0 commit comments

Comments
 (0)