- Add a browser-safe editorial generator with rotating satire and shipped highlights. - Generate a fresh 1200x630 cover from the Drop #006 foundation and upload it to Blossom. - Publish weekly drafts as NIP-78; add the admin Load draft/Preview composer flow and banner. - Add the Monday user timer (draft by default) and a manual newsletter:weekly script. - Remove static/live issue duplicates; translate the new admin strings to all 24 locales.
10 lines
453 B
Bash
Executable file
10 lines
453 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Weekly newsletter draft generator. Runs from the local repo so it can use the
|
|
# admin signer in ~/.config/skatespots/zsp.env and the git/release-notes context.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
if [ -d "$HOME/.nvm/versions/node" ]; then
|
|
NODE_BIN="$(ls -d "$HOME"/.nvm/versions/node/*/bin 2>/dev/null | sort -V | tail -1)"
|
|
[ -n "$NODE_BIN" ] && export PATH="$NODE_BIN:$PATH"
|
|
fi
|
|
exec npx tsx scripts/newsletter-weekly.ts
|