diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 785c8b3..aa39e53 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -9,7 +9,7 @@ on: version: description: Release version without the v prefix required: true - default: 0.1.2 + default: 0.1.3 type: string permissions: @@ -38,8 +38,11 @@ jobs: if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } npm --prefix web ci --no-audit --no-fund if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - npm version --no-git-tag-version $releaseVersion - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $currentVersion = node -p "require('./package.json').version" + if ($currentVersion -ne $releaseVersion) { + npm version --no-git-tag-version $releaseVersion + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + } npm --prefix web run build if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } npm run build @@ -129,7 +132,10 @@ jobs: release_version="${RELEASE_REF#v}" npm ci --no-audit --no-fund npm --prefix web ci --no-audit --no-fund - npm version --no-git-tag-version "$release_version" + current_version="$(node -p "require('./package.json').version")" + if [ "$current_version" != "$release_version" ]; then + npm version --no-git-tag-version "$release_version" + fi npm --prefix web run build npm run build npm prune --omit=dev --no-audit --no-fund diff --git a/CHANGELOG.md b/CHANGELOG.md index 889a442..1655b70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to WebSpeak are documented here. Versions follow SemVer. +## [0.1.3] — 2026-09-02 + +### Fixed + +- Release builds now skip `npm version` when the project version already matches the requested version, preventing Windows/Linux package builds from failing with `Version not changed`. + ## [0.1.2] — 2026-09-02 ### Changed diff --git a/README.md b/README.md index bff5c01..5ad8298 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,10 @@ A self-hosted TeamSpeak 3 / TeamSpeak 6 web client and voice gateway. Join your ### 更新日志 +#### 2026-09-02 · v0.1.3 + +- 修复发布工作流在项目版本号已经一致时错误退出的问题,确保 Windows/Linux 部署包能够正常生成并发布。 + #### 2026-09-02 · v0.1.2 - 修复 Docker 构建阶段未复制 `postinstall` 脚本导致依赖安装失败的问题。 @@ -250,6 +254,10 @@ WebSpeak brings TeamSpeak voice spaces to the browser. It is a self-hosted gatew ### Changelog +#### 2026-09-02 · v0.1.3 + +- Fixed the release workflow exiting with an error when the project version already matched the requested release version, so Windows/Linux deployment packages can be generated and published reliably. + #### 2026-09-02 · v0.1.2 - Fixed the Docker build failing during dependency installation because the `postinstall` patch script was not copied into the build stage. diff --git a/package-lock.json b/package-lock.json index 6d4feb8..928b0bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "webspeak-webclient", - "version": "0.1.2", + "version": "0.1.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "webspeak-webclient", - "version": "0.1.2", + "version": "0.1.3", "hasInstallScript": true, "license": "AGPL-3.0-only", "dependencies": { diff --git a/package.json b/package.json index 5707094..c60c7b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webspeak-webclient", - "version": "0.1.2", + "version": "0.1.3", "private": true, "license": "AGPL-3.0-only", "type": "module",