Skip to content

Commit d5a29e1

Browse files
committed
👷 Build in JSR publish
1 parent 91bf235 commit d5a29e1

File tree

2 files changed

+39
-19
lines changed

2 files changed

+39
-19
lines changed

.github/workflows/jsr-publish.yml

+21
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ on:
55
branches:
66
- main
77
jobs:
8+
build:
9+
runs-on: ubuntu-20.04
10+
strategy:
11+
matrix:
12+
node-version: [20]
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: pnpm/action-setup@v2
16+
with:
17+
version: 8
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: "pnpm"
23+
- name: Install dependencies
24+
run: pnpm install
25+
26+
- name: Build
27+
run: pnpm build
28+
829
publish:
930
runs-on: ubuntu-latest
1031

.github/workflows/test.yml

+18-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pnpm Example Workflow
1+
name: Build and Test
22
on:
33
push:
44
jobs:
@@ -8,21 +8,20 @@ jobs:
88
matrix:
99
node-version: [20]
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: pnpm/action-setup@v2
13-
with:
14-
version: 8
15-
- name: Use Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: ${{ matrix.node-version }}
19-
cache: 'pnpm'
20-
- name: Install dependencies
21-
run: pnpm install
22-
23-
- name: Build
24-
run: pnpm build
25-
26-
- name: Run tests
27-
run: pnpm test
28-
11+
- uses: actions/checkout@v3
12+
- uses: pnpm/action-setup@v2
13+
with:
14+
version: 8
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
cache: "pnpm"
20+
- name: Install dependencies
21+
run: pnpm install
22+
23+
- name: Build
24+
run: pnpm build
25+
26+
- name: Run tests
27+
run: pnpm test

0 commit comments

Comments
 (0)