Skip to content

Commit 7b5c98d

Browse files
authored
chore: setup pkg.pr.new (#12977)
1 parent 6df00fc commit 7b5c98d

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,25 @@ permissions:
1919
contents: read # to fetch code (actions/checkout)
2020

2121
jobs:
22+
pkg-pr-new:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: pnpm/action-setup@v4.0.0
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 22
30+
cache: pnpm
31+
- run: pnpm install --frozen-lockfile
32+
- run: pnpx pkg-pr-new publish --comment=off ./packages/kit
2233
lint-all:
2334
runs-on: ubuntu-latest
2435
steps:
2536
- uses: actions/checkout@v4
2637
- uses: pnpm/action-setup@v4.0.0
2738
- uses: actions/setup-node@v4
2839
with:
29-
node-version: '18.x'
40+
node-version: 22
3041
cache: pnpm
3142
- run: pnpm install --frozen-lockfile
3243
- run: pnpm run lint

CONTRIBUTING.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pnpm install
2222

2323
You can use the playground at [`playgrounds/basic`](./playgrounds/basic/) to experiment with your changes to SvelteKit locally.
2424

25-
### Linking
25+
### Linking local changes
2626

2727
If you want to test against an existing project, you can use [pnpm `overrides`](https://pnpm.io/package_json#pnpmoverrides) in that project:
2828

@@ -39,6 +39,14 @@ If you want to test against an existing project, you can use [pnpm `overrides`](
3939
}
4040
```
4141

42+
### Testing PR changes
43+
44+
Each pull request will be built and published via [pkg.pr.new/](https://pkg.pr.new/). You can test the change by installing the package with your PR number:
45+
46+
```
47+
npm add https://pkg.pr.new/sveltejs/kit/@sveltejs/kit@YOUR_PR_NUMBER_GOES_HERE
48+
```
49+
4250
## Code structure
4351

4452
Entry points to be aware of are:

0 commit comments

Comments
 (0)