File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 - uses : actions/setup-node@v4
2424 with :
2525 node-version : ' 20'
26- cache : npm
27- cache-dependency-path : website/package-lock.json
26+ # No npm cache: stale caches have led to incomplete node_modules (e.g. missing sonner) on CI
2827
2928 - name : Install and build website
3029 working-directory : website
3332 VITE_BASE : /${{ github.event.repository.name }}/
3433 # Vite + Mermaid/Shiki can exceed default Node heap on ubuntu-latest
3534 NODE_OPTIONS : --max-old-space-size=6144
36- run : node -v && npm -v && npm ci --userconfig "${GITHUB_WORKSPACE}/website/ci.npmrc" && npm run build
35+ run : |
36+ set -eux
37+ node -v
38+ npm -v
39+ npm install --userconfig "${GITHUB_WORKSPACE}/website/ci.npmrc" --no-audit --no-fund
40+ test -d node_modules/sonner
41+ node --input-type=module -e "import 'sonner'"
42+ npm run build
3743
3844 - uses : actions/upload-pages-artifact@v3
3945 with :
Original file line number Diff line number Diff line change 1- ; Used by GitHub Actions only — avoids parent repo .npmrc (token / pnpm-only keys) breaking npm ci
1+ ; GitHub Actions only — ignores parent repo .npmrc (token / pnpm-only keys)
22registry=https://registry.npmjs.org/
3+ legacy-peer-deps=true
You can’t perform that action at this time.
0 commit comments