SkateSpots/scripts/install-deps-timer.sh
SkateSpots 4ff5e25fee chore(deps): scheduled dependency update + vulnerability scan every 20 days
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.
2026-10-12 20:21:04 +07:00

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