File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,17 @@ jobs:
4040 restore-keys : |
4141 ${{ runner.os }}-pnpm-store-
4242
43- # Check if lockfile exists and install dependencies accordingly
44- - name : Check for lockfile and install dependencies
43+ # Install dependencies with fallback logic
44+ - name : Install dependencies
4545 run : |
46- if [ -f "pnpm-lock.yaml" ]; then
47- echo "Installing with frozen-lockfile"
48- pnpm install -- frozen- lockfile
46+ # Attempt to install with --frozen-lockfile first
47+ if pnpm install -- frozen-lockfile; then
48+ echo "Successfully installed dependencies with frozen lockfile"
4949 else
50- echo "No lockfile found, installing normally"
50+ echo "Failed to install with frozen lockfile, attempting normal install"
51+ # Remove potentially incompatible lockfile
52+ rm -f pnpm-lock.yaml
53+ # Run regular install
5154 pnpm install
5255 fi
5356
You can’t perform that action at this time.
0 commit comments