Skip to content

Commit 4b5b640

Browse files
committed
👷 run normal NPM process before JSR publish
1 parent 4167d31 commit 4b5b640

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/jsr-publish.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@ on:
44
push:
55
branches:
66
- main
7+
78
jobs:
8-
build:
9+
publish:
910
runs-on: ubuntu-20.04
11+
12+
permissions:
13+
contents: read
14+
id-token: write
15+
1016
strategy:
1117
matrix:
1218
node-version: [20]
19+
1320
steps:
1421
- uses: actions/checkout@v3
1522
- uses: pnpm/action-setup@v2
@@ -23,18 +30,14 @@ jobs:
2330
- name: Install dependencies
2431
run: pnpm install
2532

33+
- name: Install playwright
34+
run: pnpm exec playwright install
35+
2636
- name: Build
2737
run: pnpm build
2838

29-
publish:
30-
runs-on: ubuntu-latest
31-
32-
permissions:
33-
contents: read
34-
id-token: write
35-
36-
steps:
37-
- uses: actions/checkout@v4
39+
- name: Run tests
40+
run: pnpm test
3841

3942
- name: Publish package
4043
run: npx jsr publish

0 commit comments

Comments
 (0)