Skip to content

Commit 8505192

Browse files
committed
fix: install CLI from local build in GitHub Actions
- Change workflow to build and install EvalOps CLI from source instead of npm registry - This ensures the latest code with budget and cost commands is available in CI - Resolves 'Unknown command: cost' error in GitHub Actions workflow
1 parent cb42644 commit 8505192

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/evalops-ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ jobs:
2828
node-version: '20'
2929

3030
- name: Install EvalOps CLI
31-
run: npm install -g evalops-cli
31+
run: |
32+
npm install
33+
npm run build
34+
npm pack
35+
npm install -g ./evalops-cli-*.tgz
3236
3337
- name: Calculate Cost Estimate
3438
id: cost
@@ -95,7 +99,11 @@ jobs:
9599
node-version: '20'
96100

97101
- name: Install EvalOps CLI
98-
run: npm install -g evalops-cli
102+
run: |
103+
npm install
104+
npm run build
105+
npm pack
106+
npm install -g ./evalops-cli-*.tgz
99107
100108
- name: Deploy Evaluation
101109
env:

0 commit comments

Comments
 (0)