From b393d73176ce40db2b96643ef440b2b720eac836 Mon Sep 17 00:00:00 2001 From: Jasery Date: Thu, 30 Oct 2025 11:38:51 +0800 Subject: [PATCH] =?UTF-8?q?ci(workflows):=20=E6=94=B9=E8=BF=9B=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=B7=A5=E4=BD=9C=E6=B5=81=E4=B8=AD=E7=9A=84=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用 bash shell 执行版本更新脚本,并添加版本号输出日志 --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c5ec6ef..5c782e9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -55,12 +55,15 @@ jobs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' - name: Bump version and generate changelog + shell: bash run: | # 根据 commit 信息自动更新版本和生成 changelog pnpm release # 获取新版本号 - echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV + version=$(node -p "require('./package.json').version") + echo "VERSION=$version" >> $GITHUB_ENV + echo "Version set to: $version" - name: Push changes run: |