Skip to content

A local-first personal finance app

bump node and electron (#9298)

Matt Fiddamand1a536f35c5a
diff --git a/.github/actions/release-notes/check/action.yml b/.github/actions/release-notes/check/action.yml
index 36f21e12f8..d6981d9cfb 100644
--- a/.github/actions/release-notes/check/action.yml
+++ b/.github/actions/release-notes/check/action.yml
@@ -6,7 +6,7 @@ runs:
steps:
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
- node-version: 24
+ node-version-file: .nvmrc
- name: Install dependencies
shell: bash
run: yarn workspaces focus @actual-app/ci-actions
diff --git a/.github/actions/release-notes/generate/action.yml b/.github/actions/release-notes/generate/action.yml
index 92993357f4..42f6f74ed9 100644
--- a/.github/actions/release-notes/generate/action.yml
+++ b/.github/actions/release-notes/generate/action.yml
@@ -17,7 +17,7 @@ runs:
steps:
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
- node-version: 24
+ node-version-file: .nvmrc
- name: Install dependencies
shell: bash
run: yarn workspaces focus actual @actual-app/ci-actions
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 60cf01aef9..e1021b0e5c 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -21,7 +21,7 @@ runs:
- name: Install node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
- node-version: 24
+ node-version-file: ${{ format('{0}/.nvmrc', inputs.working-directory) }}
package-manager-cache: false
- name: Install yarn
run: npm install -g yarn
diff --git a/.github/workflows/issues-feature-implemented.yml b/.github/workflows/issues-feature-implemented.yml
index 0716bf90d6..dd9296ecba 100644
--- a/.github/workflows/issues-feature-implemented.yml
+++ b/.github/workflows/issues-feature-implemented.yml
@@ -31,7 +31,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
- node-version: 24
+ node-version-file: .nvmrc
- name: Handle feature requests
run: node .github/actions/handle-feature-requests.js
env:
diff --git a/.nvmrc b/.nvmrc
index 87d8620cc6..474d750b50 100644
--- a/.nvmrc
+++ b/.nvmrc
@@ -1 +1 @@
-v24.18.1
+v24.22.1
diff --git a/AGENTS.md b/AGENTS.md
index 56af977291..69d9e6cece 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -601,7 +601,7 @@ When running the app for manual testing or demos, use **"View demo"** on the ini
### Gotchas
-- The `engines` field requires **Node.js >=22** and **Yarn ^4.9.1**. The `.nvmrc` specifies `v24.18.1`.
+- The `engines` field requires **Node.js >=22** and **Yarn ^4.9.1**. The `.nvmrc` specifies `v24.22.1`.
- Pre-commit hook runs `nano-staged` (oxfmt + oxlint, configured in `.nano-staged.json`) via Husky. Run `yarn prepare` once after install to set up hooks.
- Lage caches test results in `.lage/`. If tests behave unexpectedly, clear with `rm -rf .lage`.
- Native modules (`better-sqlite3`, `bcrypt`) require build tools (`gcc`, `make`, `python3`). These are pre-installed in the Cloud VM.
diff --git a/packages/desktop-electron/package.json b/packages/desktop-electron/package.json
index af4c967d3c..9234499d43 100644
--- a/packages/desktop-electron/package.json
+++ b/packages/desktop-electron/package.json
@@ -28,7 +28,7 @@
"@typescript/native-preview": "beta",
"copyfiles": "^2.4.1",
"cross-env": "^10.1.0",
- "electron": "43.5.0",
+ "electron": "43.8.0",
"electron-builder": "26.8.1",
"typescript-strict-plugin": "^2.4.4",
"vitest": "^5.0.4"
diff --git a/packages/sync-server/docker/ubuntu.Dockerfile b/packages/sync-server/docker/ubuntu.Dockerfile
index 931340fab5..15e2da9870 100644
--- a/packages/sync-server/docker/ubuntu.Dockerfile
+++ b/packages/sync-server/docker/ubuntu.Dockerfile
@@ -1,4 +1,4 @@
-FROM node:24-bookworm AS builder
+FROM node:24.22.1-bookworm AS builder
# Install required packages
RUN apt-get update && apt-get install -y openssl
@@ -25,7 +25,7 @@ RUN find node_modules/@actual-app -maxdepth 2 -type d \
\( -name src -o -name e2e -o -name __tests__ -o -name __mocks__ -o -name tests -o -name test -o -name build-stats \) \
-exec rm -rf {} +
-FROM node:24-bookworm-slim AS prod
+FROM node:24.22.1-bookworm-slim AS prod
# Minimal runtime dependencies
RUN apt-get update && apt-get install tini && apt-get clean -y && rm -rf /var/lib/apt/lists/*
diff --git a/sync-server.Dockerfile b/sync-server.Dockerfile
index 946d0112bc..597eec4184 100644
--- a/sync-server.Dockerfile
+++ b/sync-server.Dockerfile
@@ -1,4 +1,4 @@
-FROM node:24-bookworm AS deps
+FROM node:24.22.1-bookworm AS deps
# Install required packages
RUN apt-get update && apt-get install -y openssl
@@ -51,7 +51,7 @@ RUN rm -rf ./node_modules/@actual-app/web ./node_modules/@actual-app/sync-server
COPY ./packages/desktop-client/package.json ./node_modules/@actual-app/web/package.json
RUN cp -r ./packages/desktop-client/build ./node_modules/@actual-app/web/build
-FROM node:24-bookworm-slim AS prod
+FROM node:24.22.1-bookworm-slim AS prod
# Minimal runtime dependencies
RUN apt-get update && apt-get install -y tini && apt-get clean -y && rm -rf /var/lib/apt/lists/*
diff --git a/upcoming-release-notes/bump-node-24-22-1.md b/upcoming-release-notes/bump-node-24-22-1.md
new file mode 100644
index 0000000000..ae001c4071
--- /dev/null
+++ b/upcoming-release-notes/bump-node-24-22-1.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [matt-fidd]
+---
+
+Bump Node.js and Electron
diff --git a/yarn.lock b/yarn.lock
index 017cd2610f..1c740cd042 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -13581,7 +13581,7 @@ __metadata:
better-sqlite3: "npm:^13.0.3"
copyfiles: "npm:^2.4.1"
cross-env: "npm:^10.1.0"
- electron: "npm:43.5.0"
+ electron: "npm:43.8.0"
electron-builder: "npm:26.8.1"
typescript-strict-plugin: "npm:^2.4.4"
vitest: "npm:^5.0.4"
@@ -14032,9 +14032,9 @@ __metadata:
languageName: node
linkType: hard
-"electron@npm:43.5.0":
- version: 43.5.0
- resolution: "electron@npm:43.5.0"
+"electron@npm:43.8.0":
+ version: 43.8.0
+ resolution: "electron@npm:43.8.0"
dependencies:
"@electron-internal/extract-zip": "npm:^1.0.1"
"@electron/get": "npm:^5.0.0"
@@ -14042,7 +14042,7 @@ __metadata:
bin:
electron: cli.js
install-electron: install.js
- checksum: 10/8078e8760b00d8907cd104a2371709d3cc9a82c0185d7beccc0bf535a46a99054f779b3a61789c6b354ee5689ecacb920b5c8441f627aebda9643a819b62a58f
+ checksum: 10/cd5c2d0f79e2d26366551864a595a05d7c76a657c5b833b7c15f69df40bc481f444de4f3761976990632134f09be236ed533dd45571437e8afad5116be9a8905
languageName: node
linkType: hard