Skip to content

Commit 09b3a48

Browse files
committed
fix: replace git merge --ff-only with git reset --hard to avoid package-lock.json conflicts
1 parent 4ec91b0 commit 09b3a48

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
cp .env /tmp/beta.env 2>/dev/null; cp port.txt /tmp/beta.port.txt 2>/dev/null
2121
git fetch origin --prune
2222
git checkout beta
23-
git merge --ff-only origin/beta
23+
git reset --hard origin/beta
2424
cp /tmp/beta.env .env 2>/dev/null; cp /tmp/beta.port.txt port.txt 2>/dev/null
2525
grep 'discord.zero-host.org' public/js/app.js || echo "⚠ DISCORD LINK NOT FOUND IN FILE"
2626
head -20 port.txt 2>/dev/null || echo "⚠ port.txt missing or empty"

.github/workflows/deploy-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
cp .env /tmp/main.env 2>/dev/null; cp port.txt /tmp/main.port.txt 2>/dev/null
2121
git fetch origin --prune
2222
git checkout main
23-
git merge --ff-only origin/main
23+
git reset --hard origin/main
2424
cp /tmp/main.env .env 2>/dev/null; cp /tmp/main.port.txt port.txt 2>/dev/null
2525
npm install
2626
pm2 restart zerohost-dashboard

0 commit comments

Comments
 (0)