mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-02 19:42:51 +08:00
release: make v0.1.3 publishing reliable
This commit is contained in:
1 parent
cd6dd69d9b
commit
49c8aee795
5 files changed
+27
-7
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Generated
+2
-2
@@ -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": {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "webspeak-webclient",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"private": true,
|
||||
"license": "AGPL-3.0-only",
|
||||
"type": "module",
|
||||
|
||||
Reference in new issue
Block a user