Repository navigation
Gate manual deploys on the Tiny Wire drift check - #8
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: newdeployscript (netlify deploy --prod --build) with apredeployhook runningscripts/check-tinywire-drift.sh— npm runs it automatically, sonpm run deployfails before touching Netlify if the vendored tokens are stale or hand-edited. Requires the usual sibling../tiny-wirecheckout (orTW_REPO_DIR), same as running the script by hand.README.md: documentsnpm run deployalongside the other commands.Validated:
npm run predeploypasses against tiny-wirev1.6(OK — vendored Tiny Wire tokens are in sync).🤖 Generated with Claude Code
https://claude.ai/code/session_011wancyyu9ynb6atCpn7qt9
Generated by Claude Code