Skip to content

Commit 17f3a1f

Browse files
committed
ci(pages): configure npm for GitHub Actions and adjust build command
1 parent b08011d commit 17f3a1f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/deploy-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
VITE_BASE: /${{ github.event.repository.name }}/
3434
# Vite + Mermaid/Shiki can exceed default Node heap on ubuntu-latest
3535
NODE_OPTIONS: --max-old-space-size=6144
36-
run: node -v && npm -v && npm ci && npm run build
36+
run: node -v && npm -v && npm ci --userconfig "${GITHUB_WORKSPACE}/website/ci.npmrc" && npm run build
3737

3838
- uses: actions/upload-pages-artifact@v3
3939
with:

website/ci.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
; Used by GitHub Actions only — avoids parent repo .npmrc (token / pnpm-only keys) breaking npm ci
2+
registry=https://registry.npmjs.org/

0 commit comments

Comments
 (0)