Skip to content

Commit 550e03c

Browse files
committed
fix(ci): explicitly install pnpm in github actions jobs
1 parent 182853c commit 550e03c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
- name: Set up Node.js
2727
uses: actions/setup-node@v4.0.3 # Specific version
2828
with:
29+
- name: Install pnpm globally
30+
run: npm install -g pnpm
31+
2932
node-version: '22' # Use latest LTS
3033
cache: 'pnpm' # Use pnpm cache
3134

@@ -59,6 +62,9 @@ jobs:
5962
version: ${{ steps.get_version.outputs.version }}
6063
artifact_name: build-artifacts-archive # Consistent name for upload/download
6164
archive_filename: ${{ steps.archive_build.outputs.archive_name }} # Actual .tar.gz filename
65+
- name: Install pnpm globally
66+
run: npm install -g pnpm
67+
6268
steps:
6369
- name: Checkout repository
6470
uses: actions/checkout@v4.1.7 # Specific version
@@ -114,6 +120,9 @@ jobs:
114120
uses: actions/download-artifact@v4.1.8 # Specific version
115121
with:
116122
name: ${{ needs.build.outputs.artifact_name }} # Use consistent artifact name
123+
- name: Install pnpm globally
124+
run: npm install -g pnpm
125+
117126
path: .
118127

119128
- name: Extract build artifacts

memory-bank/activeContext.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
## 2. Recent Changes/Decisions
1111

12+
- **GitHub Actions:** Added explicit `npm install -g pnpm` step to `validate`, `build`, and `publish-npm` jobs in `.github/workflows/publish.yml` to fix potential `pnpm` not found errors.
13+
1214
- Removed `edit_file` tool and related files (`editFile.ts`, `editFileUtils.ts`, `editFile.test.ts`).
1315
- Added `apply_diff` tool (`applyDiff.ts`, `applyDiffUtils.ts`, `applyDiffSchema.ts`, `applyDiff.test.ts`).
1416
- Updated tool registration in `index.ts` and `handlers/index.ts`.

0 commit comments

Comments
 (0)