Skip to content

Commit 7e81cf5

Browse files
committed
fix: intall lock file
1 parent 82e31dc commit 7e81cf5

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)