feat: add pre-checks to release-all script for safety

Add validation checks before releasing:
- Ensure we're on the main branch to prevent accidental releases from feature branches
- Verify npm authentication to prevent failed publish attempts

This prevents common release mistakes and improves release workflow reliability.
This commit is contained in:
weishu
2025-12-25 12:30:10 +08:00
parent e5f9d8cbe8
commit 4fb2a203c6
2 changed files with 24 additions and 6 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@twsxtd/hapi",
"version": "0.1.0",
"version": "0.1.1",
"description": "App for agentic coding - access coding agent anywhere",
"author": "Kirill Dubovitskiy & weishu",
"license": "MIT",
@@ -25,11 +25,11 @@
}
},
"optionalDependencies": {
"@twsxtd/hapi-darwin-arm64": "0.1.0",
"@twsxtd/hapi-darwin-x64": "0.1.0",
"@twsxtd/hapi-linux-arm64": "0.1.0",
"@twsxtd/hapi-linux-x64": "0.1.0",
"@twsxtd/hapi-win32-x64": "0.1.0"
"@twsxtd/hapi-darwin-arm64": "0.1.1",
"@twsxtd/hapi-darwin-x64": "0.1.1",
"@twsxtd/hapi-linux-arm64": "0.1.1",
"@twsxtd/hapi-linux-x64": "0.1.1",
"@twsxtd/hapi-win32-x64": "0.1.1"
},
"scripts": {
"typecheck": "tsc --noEmit",