This commit is contained in:
@@ -38,9 +38,12 @@ jobs:
|
||||
git clone https://git.hudsonriggs.systems/HRiggs/Train-ID.git "$APP_DIR"
|
||||
fi
|
||||
cd "$APP_DIR"
|
||||
git pull origin main
|
||||
# Install Node.js deps and build
|
||||
"$NPM" ci || "$NPM" install
|
||||
# Reset any local changes (e.g., package-lock.json, build artifacts) and sync to origin/main
|
||||
git fetch --prune origin
|
||||
git reset --hard origin/main
|
||||
git clean -fdx
|
||||
# Install Node.js deps and build without modifying lockfile
|
||||
"$NPM" ci --no-audit --no-fund
|
||||
"$NPM" run build
|
||||
# Ensure systemd service exists and restart
|
||||
if systemctl list-unit-files | grep -q "${SERVICE}.service"; then
|
||||
|
||||
Reference in New Issue
Block a user