chore(release): update version to 0.3.10-beta.4 and enhance release validation

- Bump version in package.json to 0.3.10-beta.4.
- Add a new GitHub Actions job to validate that the version in package.json matches the release tag.
- Introduce scripts for versioning and release validation to streamline the release process.
This commit is contained in:
Haze
2026-04-20 18:43:53 +08:00
parent 78ab21d8e2
commit ec4007cd23
4 changed files with 95 additions and 1 deletions

View File

@@ -18,7 +18,18 @@ permissions:
actions: read
jobs:
# Fails fast on tag pushes if package.json "version" does not match the tag.
validate-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Assert tag matches package.json
run: node scripts/assert-tag-matches-package.mjs
release:
needs: validate-release
strategy:
matrix:
include: