chore: prepare release 0.1.0 with native binary support

- Update CLI version to 0.1.0
- Change bin script extension from .js to .cjs for ES module compatibility
- Add release-it as dev dependency for version management
- Update all platform-specific binary package versions to 0.1.0
- Enhance release workflow to support custom RELEASE_NOTES.md
This commit is contained in:
weishu
2025-12-25 11:31:03 +08:00
parent f65611b287
commit d11bfbef86
5 changed files with 336 additions and 22 deletions
+12 -4
View File
@@ -40,10 +40,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${GITHUB_REF#refs/tags/}" \
--title "Release ${GITHUB_REF#refs/tags/}" \
--generate-notes \
cli/release-artifacts/*
NOTES_FILE="RELEASE_NOTES.md"
if [ -f "$NOTES_FILE" ]; then
gh release create "${GITHUB_REF#refs/tags/}" \
--title "Release ${GITHUB_REF#refs/tags/}" \
--notes-file "$NOTES_FILE" \
cli/release-artifacts/*
else
gh release create "${GITHUB_REF#refs/tags/}" \
--title "Release ${GITHUB_REF#refs/tags/}" \
--generate-notes \
cli/release-artifacts/*
fi
- name: Update Homebrew formula
continue-on-error: true
env: