Skip to content

Gate manual deploys on the Tiny Wire drift check - #8

Merged
LinzLos merged 3 commits into
mainfrom
claude/keen-mayer-9knmpc
Sep 28, 2026
Merged

LinzLos merged 3 commits into
mainfrom
claude/keen-mayer-9knmpc

Conversation

@LinzLos

@LinzLos LinzLos commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Follow-up to #7: CI now guards the repo, but Netlify CD is off, so a manual deploy could still ship drifted tokens. This adds the local gate.

  • package.json: new deploy script (netlify deploy --prod --build) with a predeploy hook running scripts/check-tinywire-drift.sh — npm runs it automatically, so npm run deploy fails before touching Netlify if the vendored tokens are stale or hand-edited. Requires the usual sibling ../tiny-wire checkout (or TW_REPO_DIR), same as running the script by hand.
  • README.md: documents npm run deploy alongside the other commands.

Validated: npm run predeploy passes against tiny-wire v1.6 (OK — vendored Tiny Wire tokens are in sync).

🤖 Generated with Claude Code

https://claude.ai/code/session_011wancyyu9ynb6atCpn7qt9


Generated by Claude Code

Runs scripts/check-tinywire-drift.sh on every push and PR: checks out
tiny-wire at the tag matching src/lib/.tinywire-version and verifies the
pin and vendored files match the pinned release byte for byte.
npm run deploy now runs scripts/check-tinywire-drift.sh before
netlify deploy --prod --build, so a stale or hand-edited vendored
tokens file blocks a manual deploy the same way it fails CI.
@LinzLos
LinzLos merged commit 7bcbbde into main Sep 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant