Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(ci): pin desktop workflows to an exact node version (#122821)

Tom Piccirelloeef08d9542b8
diff --git a/.github/renovate.json5 b/.github/renovate.json5
index b5cafe309527..aa421aaf7c02 100644
--- a/.github/renovate.json5
+++ b/.github/renovate.json5
@@ -12,6 +12,8 @@
'gomod',
'cargo',
'custom.regex',
+ 'nodenv',
+ 'nvm',
],
dependencyDashboardTitle: 'Renovate: Dependency Status',
dependencyDashboardLabels: [
@@ -91,5 +93,12 @@
dependencyDashboardApproval: false,
groupName: 'sandbox nodejs',
},
+ // A stale Node pin keeps known vulnerabilities in CI, so skip the dashboard approval
+ // for `.node-version` and `.nvmrc` updates. A major bump still waits for approval
+ {
+ matchManagers: ['nodenv', 'nvm'],
+ matchUpdateTypes: ['minor', 'patch'],
+ dependencyDashboardApproval: false,
+ },
],
}
diff --git a/.github/workflows/desktop-agent-release-verify.yml b/.github/workflows/desktop-agent-release-verify.yml
index 68105d2de3c0..39abadcafd40 100644
--- a/.github/workflows/desktop-agent-release-verify.yml
+++ b/.github/workflows/desktop-agent-release-verify.yml
@@ -43,7 +43,7 @@ jobs:
- name: Set up Node 24
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 24
+ node-version-file: .nvmrc
- name: Get pnpm store path
id: pnpm-store
diff --git a/.github/workflows/desktop-agent-release.yml b/.github/workflows/desktop-agent-release.yml
index 5ddd2e7e508e..946d76676c53 100644
--- a/.github/workflows/desktop-agent-release.yml
+++ b/.github/workflows/desktop-agent-release.yml
@@ -46,7 +46,7 @@ jobs:
- name: Set up Node 24
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 24
+ node-version-file: .nvmrc
package-manager-cache: false
- name: Extract version from tag
diff --git a/.github/workflows/desktop-build-test.yml b/.github/workflows/desktop-build-test.yml
index b6a0ed21ad8a..b81c5408808f 100644
--- a/.github/workflows/desktop-build-test.yml
+++ b/.github/workflows/desktop-build-test.yml
@@ -95,7 +95,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
# pnpm installs native optional packages for the host CPU only, and the x64
# build runs on an Apple silicon runner.
@@ -256,7 +256,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
- name: Install e2e dependencies
run: pnpm install --frozen-lockfile --ignore-scripts --filter code
@@ -335,7 +335,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
- name: Get pnpm store path
id: pnpm-store
@@ -461,7 +461,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
- name: Get pnpm store path
id: pnpm-store
diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml
index 2d570eb812df..4733dc1a96af 100644
--- a/.github/workflows/desktop-build.yml
+++ b/.github/workflows/desktop-build.yml
@@ -113,7 +113,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
- name: Get pnpm store path
id: pnpm-store
diff --git a/.github/workflows/desktop-mobile-build.yml b/.github/workflows/desktop-mobile-build.yml
index 18727d9cb10a..03f72e73ef38 100644
--- a/.github/workflows/desktop-mobile-build.yml
+++ b/.github/workflows/desktop-mobile-build.yml
@@ -62,7 +62,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
cache: 'pnpm'
cache-dependency-path: products/desktop/pnpm-lock.yaml
diff --git a/.github/workflows/desktop-mobile-promote.yml b/.github/workflows/desktop-mobile-promote.yml
index 85edc35684c7..e31e687ddf58 100644
--- a/.github/workflows/desktop-mobile-promote.yml
+++ b/.github/workflows/desktop-mobile-promote.yml
@@ -82,7 +82,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
- name: Setup EAS
uses: expo/expo-github-action@eab7a230208c952974db8c3245cfd78402c7b385 # 9.0.0
diff --git a/.github/workflows/desktop-quality.yml b/.github/workflows/desktop-quality.yml
index dde5fef2d15e..41bf0035a7dd 100644
--- a/.github/workflows/desktop-quality.yml
+++ b/.github/workflows/desktop-quality.yml
@@ -101,7 +101,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
package-manager-cache: false
- name: Check host boundaries (apps/code must stay a thin Electron host)
diff --git a/.github/workflows/desktop-react-doctor.yml b/.github/workflows/desktop-react-doctor.yml
index 6b33d86f2612..43b81d765f06 100644
--- a/.github/workflows/desktop-react-doctor.yml
+++ b/.github/workflows/desktop-react-doctor.yml
@@ -41,7 +41,7 @@ jobs:
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
package-manager-cache: false
- id: scan
diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml
index ffd5b427fa6b..594f6fddacd3 100644
--- a/.github/workflows/desktop-release.yml
+++ b/.github/workflows/desktop-release.yml
@@ -108,7 +108,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
package-manager-cache: false
- name: Get pnpm store path
@@ -347,7 +347,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
package-manager-cache: false
- name: Install e2e dependencies
@@ -429,7 +429,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
package-manager-cache: false
- name: Extract version from tag
@@ -620,7 +620,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
package-manager-cache: false
- name: Extract version from tag
@@ -762,6 +762,7 @@ jobs:
fetch-depth: 0
filter: blob:none
sparse-checkout: |
+ products/desktop/.node-version
products/desktop/apps/code/scripts/merge-mac-manifests.mjs
products/desktop/apps/code/scripts/generate-release-download-tables.mjs
products/desktop/apps/code/scripts/build-releases-feed.mjs
@@ -774,7 +775,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
package-manager-cache: false
- name: Install yaml dependency
diff --git a/.github/workflows/desktop-test.yml b/.github/workflows/desktop-test.yml
index 307368434a48..e036bd2f925f 100644
--- a/.github/workflows/desktop-test.yml
+++ b/.github/workflows/desktop-test.yml
@@ -107,7 +107,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
- name: Get pnpm store path
id: pnpm-store
@@ -161,7 +161,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
- name: Get pnpm store path
id: pnpm-store
@@ -310,7 +310,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
- name: Get pnpm store path
id: pnpm-store
diff --git a/.github/workflows/desktop-typecheck.yml b/.github/workflows/desktop-typecheck.yml
index fc83040c8b92..84ecc8980c9a 100644
--- a/.github/workflows/desktop-typecheck.yml
+++ b/.github/workflows/desktop-typecheck.yml
@@ -99,7 +99,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
- name: Get pnpm store path
id: pnpm-store
diff --git a/.github/workflows/desktop-update-e2e.yml b/.github/workflows/desktop-update-e2e.yml
index 9ab292eceac2..66ce81e5b3f2 100644
--- a/.github/workflows/desktop-update-e2e.yml
+++ b/.github/workflows/desktop-update-e2e.yml
@@ -74,7 +74,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
cache: 'pnpm'
cache-dependency-path: products/desktop/pnpm-lock.yaml
diff --git a/.github/workflows/desktop-warm-caches.yml b/.github/workflows/desktop-warm-caches.yml
index 5368ec4af7ac..672605c9e234 100644
--- a/.github/workflows/desktop-warm-caches.yml
+++ b/.github/workflows/desktop-warm-caches.yml
@@ -55,7 +55,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
- name: Get pnpm store path
id: pnpm-store
@@ -114,7 +114,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 22
+ node-version-file: products/desktop/.node-version
- name: Get pnpm store path
id: pnpm-store
diff --git a/products/desktop/.node-version b/products/desktop/.node-version
index 8fdd954df983..c62d2c858186 100644
--- a/products/desktop/.node-version
+++ b/products/desktop/.node-version
@@ -1 +1 @@
-22
\ No newline at end of file
+22.23.4
\ No newline at end of file