Skip to content

Commit e2bb23c

Browse files
committed
Fix CI/CD again
1 parent 3330c72 commit e2bb23c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,20 @@ jobs:
2020
uses: actions/checkout@v4
2121

2222
- name: Set up Node.js
23+
if: hashFiles('CosmoView/package.json') != ''
2324
uses: actions/setup-node@v4
2425
with:
2526
node-version: "20"
2627
cache: "npm"
2728
cache-dependency-path: CosmoView/package-lock.json
2829

2930
- name: Install frontend dependencies
30-
working-directory: CosmoView
31-
run: npm ci
31+
if: hashFiles('CosmoView/package.json') != ''
32+
run: npm ci --prefix CosmoView
3233

3334
- name: Build frontend bundle
34-
working-directory: CosmoView
35-
run: npm run build
35+
if: hashFiles('CosmoView/package.json') != ''
36+
run: npm --prefix CosmoView run build
3637

3738
- name: Start SSH agent
3839
uses: webfactory/ssh-agent@v0.9.0

0 commit comments

Comments
 (0)