Skip to content

Commit c64a182

Browse files
committed
fix: 🐛 后台管理关于页面版本号显示不正确
1 parent bdd1f42 commit c64a182

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
rm -rf toolbox/public/admin
6161
mkdir -p toolbox/public/admin
6262
sed -i "s#v[a-zA-Z0-9.]*#${{ env.VERSION }}#" toolbox/config/version.php
63+
sed -i '3d' toolbox-web/package.json
64+
sed -i "3 i\ \"version\": \"${{ env.VERSION }}\"," toolbox-web/package.json
6365
cp -fr toolbox toolbox-full
6466
6567
- name: Build Toolbox

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
rm -rf toolbox/public/admin
5656
mkdir -p toolbox/public/admin
5757
sed -i "s#v[a-zA-Z0-9.]*#${{ env.VERSION }}#" toolbox/config/version.php
58+
sed -i '3d' toolbox-web/package.json
59+
sed -i "3 i\ \"version\": \"${{ env.VERSION }}\"," toolbox-web/package.json
5860
cp -fr toolbox toolbox-full
5961
6062
- name: Build Toolbox

0 commit comments

Comments
 (0)