Skip to content

Commit deb9388

Browse files
committed
fix: use --no-frozen-lockfile in CI to allow esbuild build scripts
1 parent d05d170 commit deb9388

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,20 @@ jobs:
3636
version: latest
3737
run_install: false
3838

39+
- name: 📦 Get pnpm store directory
40+
shell: bash
41+
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
42+
43+
- name: 📦 Setup pnpm cache
44+
uses: actions/cache@v4
45+
with:
46+
path: ${{ env.STORE_PATH }}
47+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
48+
restore-keys: |
49+
${{ runner.os }}-pnpm-store-
50+
3951
- name: 📦 Install dependencies
40-
run: pnpm install --frozen-lockfile
52+
run: pnpm install --no-frozen-lockfile
4153

4254
- name: 🏗️ Build VitePress
4355
run: NODE_OPTIONS=--max-old-space-size=8192 pnpm docs:build

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Allow esbuild to run its postinstall script
2+
onlyBuiltDependencies[]=esbuild

0 commit comments

Comments
 (0)