scripts/update-deps.sh (systemd user timer skatespots-deps.timer, daily tick, self-gated to 20 days): scans npm outdated + npm audit, applies non-breaking updates only, gates on npm test + smoke, then commits+pushes on green or restores the lockfile on red. Never --force; skips on a dirty tree; bounds the signed push.
16 lines
475 B
Bash
Executable file
16 lines
475 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# Install the dependency-update + vulnerability-scan systemd user timer.
|
|
# scripts/install-deps-timer.sh
|
|
set -euo pipefail
|
|
|
|
SRC="$(cd "$(dirname "$0")/systemd" && pwd)"
|
|
DEST="$HOME/.config/systemd/user"
|
|
mkdir -p "$DEST"
|
|
|
|
cp "$SRC/skatespots-deps.service" "$DEST/"
|
|
cp "$SRC/skatespots-deps.timer" "$DEST/"
|
|
|
|
systemctl --user daemon-reload
|
|
systemctl --user enable --now skatespots-deps.timer
|
|
systemctl --user list-timers skatespots-deps.timer --no-pager
|