fix: add prepublishOnly script for release safety#115
Merged
scottlovegrove merged 2 commits intomainfrom Mar 29, 2026
Merged
Conversation
twist-cli has no prepublishOnly script, so the build step is needed explicitly before semantic-release publishes the package. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Please, try the command again or contact the team maintaining the bot. |
Add prepublishOnly to ensure build and tests run before any publish, whether from CI or manual. Remove explicit build/test steps from the release workflow since prepublishOnly handles this automatically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
doistbot
added a commit
that referenced
this pull request
Mar 29, 2026
## [2.21.2](v2.21.1...v2.21.2) (2026-03-29) ### Bug Fixes * add prepublishOnly script for release safety ([#115](#115)) ([7b50727](7b50727))
Member
|
🎉 This PR is included in version 2.21.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Summary
Add
prepublishOnlyscript topackage.jsonto ensure the package is always built and tested before publishing — whether from semantic-release in CI or a manualnpm publish.Note: v2.21.1 may have been published without a proper build. Consider deprecating it once this fix is released.
Changes
"prepublishOnly": "npm run build && npm test"topackage.json🤖 Generated with Claude Code