Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
# 与 ootb.yml 对齐: npm-run-all2 等要求 ≥22.22; db-server 需 ≥22.13
node-version: "22.22"
# 与 ootb.yml 共用 .node-version(DRY);勿在此再写死另一份版本号
node-version-file: .node-version
cache: npm
registry-url: https://registry.npmjs.org

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ootb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
timeout-minutes: 15

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
# db-server 在模块加载时 import node:sqlite,22.5–22.12 需 --experimental-sqlite;
# npm-run-all2@9 等 dev 依赖要求 ≥22.22.2。22.22 同时满足两者。
node-version: "24"
# 默认 CI Node 唯一来源: 仓库根 .node-version(与 npm-publish 共用)。
# db-server 需 ≥22.13(node:sqlite 无 flag);npm-run-all2@9 要求
# ^22.22.2 || ^24.15.0 || >=26 —— 当前钉 24(GHA 解析到 ≥24.15)。
node-version-file: .node-version
cache: npm

- name: Install root deps
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
node-mirror: darwin-x64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
# SEA bundle 目标 node26(见 build-sea.mjs target)
# 故意独立于 .node-version:SEA bundle 目标 node26(见 build-sea.mjs target)
node-version: "26"
cache: npm

Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/download-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24