chore: pin Node version for reproducible releases (#779)

This commit is contained in:
Yishen Tu
2026-06-12 11:42:49 +08:00
committed by GitHub
parent 0740a3729a
commit c1f2814429
6 changed files with 17 additions and 12 deletions
+6 -6
View File
@@ -12,10 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Node 22
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
node-version-file: .node-version
cache: 'npm'
- name: Install dependencies
@@ -29,10 +29,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Node 22
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
node-version-file: .node-version
cache: 'npm'
- name: Install dependencies
@@ -46,10 +46,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Node 22
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
node-version-file: .node-version
cache: 'npm'
- name: Install dependencies
+2 -2
View File
@@ -20,10 +20,10 @@ jobs:
with:
fetch-depth: 0 # Full history for changelog generation
- name: Setup Node 20
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .node-version
cache: 'npm'
- name: Install dependencies
+1
View File
@@ -0,0 +1 @@
24.16.0
+3
View File
@@ -9,6 +9,9 @@
"version": "2.0.23",
"hasInstallScript": true,
"license": "MIT",
"engines": {
"node": ">=24 <25"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.3.159",
"@codemirror/state": "^6.5.0",
+3
View File
@@ -3,6 +3,9 @@
"version": "2.0.23",
"description": "Claudian - Claude Code embedded in Obsidian sidebar",
"main": "main.js",
"engines": {
"node": ">=24 <25"
},
"scripts": {
"postinstall": "node scripts/postinstall.mjs",
"build:css": "node scripts/build-css.mjs",
+2 -4
View File
@@ -73,14 +73,12 @@ function installTreeAwareKill(child: ChildProcess, spawnSpec: WindowsCmdShimSpaw
return;
}
const originalKill = child.kill;
const originalKill: (signal?: NodeJS.Signals | number) => boolean = child.kill.bind(child);
const killableChild = {
get pid(): number | undefined {
return child.pid;
},
kill(signal?: NodeJS.Signals | number): boolean {
return originalKill.call(child, signal);
},
kill: (signal?: NodeJS.Signals | number): boolean => originalKill(signal),
};
child.kill = ((signal?: NodeJS.Signals | number): boolean =>