Spaces:
Sleeping
Sleeping
Commit
Β·
8aa7ba9
1
Parent(s):
9bd5148
build(ci): π§ set working directory and correct cache dependency
Browse files- Configured `working-directory` to `./web` for upload job
- Corrected `cache-dependency-path` for Node setup
- .github/workflows/ci.yml +4 -1
.github/workflows/ci.yml
CHANGED
@@ -33,6 +33,9 @@ jobs:
|
|
33 |
# Build and upload the website
|
34 |
upload:
|
35 |
name: Upload Pages
|
|
|
|
|
|
|
36 |
runs-on: ubuntu-latest
|
37 |
permissions:
|
38 |
contents: read
|
@@ -42,7 +45,7 @@ jobs:
|
|
42 |
- uses: actions/setup-node@v4
|
43 |
with:
|
44 |
node-version: 20
|
45 |
-
|
46 |
cache: npm
|
47 |
- run: npm ci --prefix ./web
|
48 |
- run: npm run build --prefix ./web
|
|
|
33 |
# Build and upload the website
|
34 |
upload:
|
35 |
name: Upload Pages
|
36 |
+
defaults:
|
37 |
+
run:
|
38 |
+
working-directory: ./web
|
39 |
runs-on: ubuntu-latest
|
40 |
permissions:
|
41 |
contents: read
|
|
|
45 |
- uses: actions/setup-node@v4
|
46 |
with:
|
47 |
node-version: 20
|
48 |
+
cache-dependency-path: 'web/package.json'
|
49 |
cache: npm
|
50 |
- run: npm ci --prefix ./web
|
51 |
- run: npm run build --prefix ./web
|