Skip to content

Commit 6d72324

Browse files
sealdayclaude
andcommitted
ci: fix pnpm setup and add test workflow
- Add packageManager field to root package.json - Upgrade pnpm/action-setup to v4 in deploy.yml - Create ci.yml workflow for build and test 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6101e6a commit 6d72324

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v4
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: pnpm
24+
25+
- name: Install dependencies
26+
run: pnpm install
27+
28+
- name: Build
29+
run: pnpm build
30+
31+
- name: Test
32+
run: pnpm test

.github/workflows/deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424
uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 0 # Not needed if lastUpdated is not enabled
27-
- uses: pnpm/action-setup@v3 # pnpm is optional but recommended, you can also use npm / yarn
28-
with:
29-
version: 9
27+
- uses: pnpm/action-setup@v4
3028
- name: Setup Node
3129
uses: actions/setup-node@v4
3230
with:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@tachybase/sheet-monorepo",
33
"private": true,
44
"type": "module",
5+
"packageManager": "pnpm@9.15.4",
56
"scripts": {
67
"build": "pnpm -r build",
78
"dev": "pnpm -C packages/demo dev",

0 commit comments

Comments
 (0)