[webhook] Updates the NPM install hooks to do a new directory on each deploy. Clean will come later

This commit is contained in:
2025-07-31 15:34:45 -07:00
parent 8a566715db
commit 1d1702bd9b
2 changed files with 6 additions and 3 deletions

View File

@@ -28,6 +28,8 @@ let
id
pwd
output_dir=$(date --utc --iso-8601=seconds)
export GIT_SSH_COMMAND='ssh -v -o "UserKnownHostsFile ${gitKnownHosts}" -i "${
config.sops.secrets."deploy-key/mcp".path
}"'
@@ -43,7 +45,8 @@ let
# Use a local cache with --cache .npm
npm ci --cache .npm
npm run build
npm run build -- --outDir "$output_dir"
ln -s "$output_dir" deployed
'';
};
in