Skip to content

Commit 46a059d

Browse files
committed
fix(ci): Use root package-lock.json for workspace caching
- Update cache-dependency-path to use root package-lock.json - Replace npm ci with npm install for workspace compatibility - Remove agentic-synth/package-lock.json (not needed with workspaces)
1 parent 789ade6 commit 46a059d

3 files changed

Lines changed: 10 additions & 7422 deletions

File tree

.github/workflows/agentic-synth-ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747
with:
4848
node-version: ${{ env.NODE_VERSION }}
4949
cache: 'npm'
50-
cache-dependency-path: ${{ env.PACKAGE_PATH }}/package-lock.json
50+
cache-dependency-path: package-lock.json
5151

5252
- name: Install dependencies
5353
working-directory: ${{ env.PACKAGE_PATH }}
54-
run: npm ci
54+
run: npm install
5555

5656
- name: Run TypeScript type checking
5757
working-directory: ${{ env.PACKAGE_PATH }}
@@ -88,11 +88,11 @@ jobs:
8888
with:
8989
node-version: ${{ matrix.node-version }}
9090
cache: 'npm'
91-
cache-dependency-path: ${{ env.PACKAGE_PATH }}/package-lock.json
91+
cache-dependency-path: package-lock.json
9292

9393
- name: Install dependencies
9494
working-directory: ${{ env.PACKAGE_PATH }}
95-
run: npm ci
95+
run: npm install
9696

9797
- name: Build package (ESM + CJS)
9898
working-directory: ${{ env.PACKAGE_PATH }}
@@ -154,11 +154,11 @@ jobs:
154154
with:
155155
node-version: ${{ env.NODE_VERSION }}
156156
cache: 'npm'
157-
cache-dependency-path: ${{ env.PACKAGE_PATH }}/package-lock.json
157+
cache-dependency-path: package-lock.json
158158

159159
- name: Install dependencies
160160
working-directory: ${{ env.PACKAGE_PATH }}
161-
run: npm ci
161+
run: npm install
162162

163163
- name: Run tests with coverage
164164
working-directory: ${{ env.PACKAGE_PATH }}
@@ -198,11 +198,11 @@ jobs:
198198
with:
199199
node-version: ${{ env.NODE_VERSION }}
200200
cache: 'npm'
201-
cache-dependency-path: ${{ env.PACKAGE_PATH }}/package-lock.json
201+
cache-dependency-path: package-lock.json
202202

203203
- name: Install dependencies
204204
working-directory: ${{ env.PACKAGE_PATH }}
205-
run: npm ci
205+
run: npm install
206206

207207
- name: Build package
208208
working-directory: ${{ env.PACKAGE_PATH }}
@@ -259,11 +259,11 @@ jobs:
259259
with:
260260
node-version: ${{ env.NODE_VERSION }}
261261
cache: 'npm'
262-
cache-dependency-path: ${{ env.PACKAGE_PATH }}/package-lock.json
262+
cache-dependency-path: package-lock.json
263263

264264
- name: Install dependencies
265265
working-directory: ${{ env.PACKAGE_PATH }}
266-
run: npm ci
266+
run: npm install
267267

268268
- name: Build package
269269
working-directory: ${{ env.PACKAGE_PATH }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ target
2424
node_modules/
2525
package-lock.json
2626
!npm/package-lock.json
27-
!packages/agentic-synth/package-lock.json
2827

2928
# napi-rs build artifacts
3029
*.node

0 commit comments

Comments
 (0)