Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/full-ci-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:

- run: npm ci --no-audit --no-fund

- name: Check package version alignment
run: npm run check:version

- run: npm run lint:check
- run: npm run typecheck
- run: npm run check:i18n
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
- name: Install deps
run: npm ci --no-audit --no-fund

- name: Check package version alignment
run: npm run check:version

- name: ESLint(check 模式,不 auto-fix)
run: npm run lint:check

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [1.0.0] - 2026-09-02

- 统一前端应用发布版本,与 batch-platform `v1.0.0` 对齐。

## [0.1.7](https://github.com/pinpols/batch-console/compare/v0.1.6...v0.1.7) (2026-06-02)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "batch-console",
"version": "0.1.7",
"version": "1.0.0",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand All @@ -12,6 +12,7 @@
"dev": "vite",
"gen:api": "openapi-typescript ../file-batch-system/docs/api/console-api.openapi.yaml -o src/types/api.generated.ts && prettier --write src/types/api.generated.ts",
"gen:api:check": "bash scripts/check-api-drift.sh",
"check:version": "bash scripts/check-version-alignment.sh",
"typecheck": "vue-tsc --noEmit",
"check:i18n": "node --experimental-strip-types scripts/check-i18n-messages.mjs",
"check:health": "bash scripts/local/health-check.sh",
Expand Down
22 changes: 22 additions & 0 deletions scripts/check-version-alignment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -euo pipefail

ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
EXPECTED_VERSION="${1:-${RELEASE_VERSION:-}}"

PACKAGE_VERSION="$(node -p "require('$ROOT_DIR/package.json').version")"
LOCK_VERSION="$(node -p "require('$ROOT_DIR/package-lock.json').version")"
LOCK_ROOT_VERSION="$(node -p "require('$ROOT_DIR/package-lock.json').packages[''].version")"

if [[ "$PACKAGE_VERSION" != "$LOCK_VERSION" || "$PACKAGE_VERSION" != "$LOCK_ROOT_VERSION" ]]; then
echo "版本不一致: package.json=$PACKAGE_VERSION package-lock.json=$LOCK_VERSION packages['']=$LOCK_ROOT_VERSION" >&2
exit 1
fi

if [[ -n "$EXPECTED_VERSION" && "$PACKAGE_VERSION" != "$EXPECTED_VERSION" ]]; then
echo "前端版本 $PACKAGE_VERSION 与期望发布版本 $EXPECTED_VERSION 不一致" >&2
exit 1
fi

echo "版本对齐: batch-console=$PACKAGE_VERSION"