fix(workflow): 修复文档发布工作流条件并指定Bun版本

- 修复了触发文档发布的条件逻辑
- 指定Bun.js版本为2.1.x以确保兼容性
- 移除了不必要的分支检查条件
This commit is contained in:
GeWuYou 2026-02-11 13:31:14 +08:00 committed by gewuyou
parent d147bc01fe
commit 604d720639

View File

@ -19,7 +19,7 @@ jobs:
build-and-deploy:
if: |
(startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-'))
|| (github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[release doc]'))
|| contains(github.event.head_commit.message, '[release doc]'))
runs-on: ubuntu-latest
environment:
@ -34,7 +34,7 @@ jobs:
# 2⃣ 安装 Bun.js
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
bun-version: 2.1.x
# 3⃣ 安装依赖
- name: Install Dependencies
run: |