Skip to content

Commit 29bb2a8

Browse files
authored
chore: migrate workspace to pnpm (#9)
1 parent f06ea8c commit 29bb2a8

7 files changed

Lines changed: 3659 additions & 5733 deletions

File tree

.github/workflows/embeddings.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1616

17+
- uses: pnpm/action-setup@v4
18+
with:
19+
version: 9.15.4
20+
1721
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
1822
with:
1923
node-version: '20'
20-
cache: 'npm'
24+
cache: 'pnpm'
2125

22-
- run: npm ci
26+
- run: pnpm install --frozen-lockfile
2327

24-
- run: npm run build -w @retort-plugins/router
28+
- run: pnpm --filter @retort-plugins/router build
2529

2630
- name: Regenerate embeddings index
2731
run: node packages/router/scripts/generate-embeddings.mjs

.github/workflows/vscode.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,34 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1515

16+
- uses: pnpm/action-setup@v4
17+
with:
18+
version: 9.15.4
19+
1620
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
1721
with:
1822
node-version: '20'
19-
cache: 'npm'
23+
cache: 'pnpm'
2024

21-
- run: npm ci
25+
- run: pnpm install --frozen-lockfile
2226

2327
- name: Build router
24-
run: npm run build -w @retort-plugins/router
28+
run: pnpm --filter @retort-plugins/router build
2529

2630
- name: Test router
27-
run: npm run test -w @retort-plugins/router
31+
run: pnpm --filter @retort-plugins/router test
2832

2933
- name: Build UI
30-
run: npm run build -w @retort-plugins/ui
34+
run: pnpm --filter @retort-plugins/ui build
3135

3236
- name: Build state-watcher
33-
run: npm run build -w @retort-plugins/state-watcher
37+
run: pnpm --filter @retort-plugins/state-watcher build
3438

3539
- name: Build VSCode extension
36-
run: npm run build -w @retort-plugins/vscode
40+
run: pnpm --filter @retort-plugins/vscode build
3741

3842
- name: Typecheck all
39-
run: npm run typecheck --workspaces --if-present
43+
run: pnpm -r --if-present typecheck
4044

4145
- name: Lint all
42-
run: npm run lint --workspaces --if-present
46+
run: pnpm -r --if-present lint

0 commit comments

Comments
 (0)