davidgasquez commited on
Commit
9bd5148
·
1 Parent(s): 2934c50

build: :wrench: update CI to handle nested Node.js project

Browse files

- Specify `node-version-file` to read Node.js version from `web/package.json`
- Prefix npm commands with `./web` to target nested project

Files changed (1) hide show
  1. .github/workflows/ci.yml +2 -1
.github/workflows/ci.yml CHANGED
@@ -42,8 +42,9 @@ jobs:
42
  - uses: actions/setup-node@v4
43
  with:
44
  node-version: 20
 
45
  cache: npm
46
- - run: npm ci
47
  - run: npm run build --prefix ./web
48
  - name: Upload Pages Artifact
49
  uses: actions/upload-pages-artifact@v3
 
42
  - uses: actions/setup-node@v4
43
  with:
44
  node-version: 20
45
+ node-version-file: 'web/package.json'
46
  cache: npm
47
+ - run: npm ci --prefix ./web
48
  - run: npm run build --prefix ./web
49
  - name: Upload Pages Artifact
50
  uses: actions/upload-pages-artifact@v3