Skip to content

Commit 42409a4

Browse files
committed
add pkg.pr.new
1 parent 7a3edc0 commit 42409a4

File tree

4 files changed

+49
-19
lines changed

4 files changed

+49
-19
lines changed

.github/workflows/lint.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ jobs:
77
lint:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111

1212
- uses: pnpm/action-setup@v2
1313
with:
14-
version: 8.6.0
14+
version: 9.6.0
1515

16-
- uses: actions/setup-node@v3
16+
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 18
18+
node-version: 20
1919
cache: pnpm
2020

2121
- run: pnpm install

.github/workflows/pkg.pr.new.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish Any Commit to pkg.pr.new
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- '**'
8+
tags:
9+
- '!**'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- uses: pnpm/action-setup@v2
21+
with:
22+
version: 9.6.0
23+
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: pnpm
28+
29+
- run: pnpm install
30+
31+
- run: pnpm build
32+
33+
- name: Release
34+
run: pnpm dlx pkg-pr-new publish --compact --pnpm './packages/*'

.github/workflows/release.yml

+7-11
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,23 @@ jobs:
1212
contents: write
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

19-
- name: Install pnpm
20-
uses: pnpm/action-setup@v2
19+
- uses: pnpm/action-setup@v2
2120
with:
22-
version: 8.6.0
21+
version: 9.6.0
2322

24-
- name: Setup node
25-
uses: actions/setup-node@v3
23+
- uses: actions/setup-node@v4
2624
with:
27-
node-version: 18
25+
node-version: 20
2826
cache: pnpm
2927
registry-url: 'https://registry.npmjs.org'
3028

31-
- name: Install Dependencies
32-
run: pnpm i
29+
- run: pnpm install
3330

34-
- name: PNPM build
35-
run: pnpm run build
31+
- run: pnpm build
3632

3733
- name: Publish to NPM
3834
run: pnpm -r publish --access public --no-git-checks

.github/workflows/svelte-check-unit-test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- uses: pnpm/action-setup@v2
1717
with:
18-
version: 8.6.0
18+
version: 9.6.0
1919

20-
- uses: actions/setup-node@v3
20+
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 18
22+
node-version: 20
2323
cache: pnpm
2424

2525
- run: pnpm install

0 commit comments

Comments
 (0)