Skip to content

Colota - Android GPS Location tracker

ci: read the Node version from .nvmrc (#578)

Max Dietrich31cfd3826d08
diff --git a/.github/actions/setup-build/action.yml b/.github/actions/setup-build/action.yml
index d7044222..c4fce471 100644
--- a/.github/actions/setup-build/action.yml
+++ b/.github/actions/setup-build/action.yml
@@ -7,7 +7,7 @@ runs:
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
- node-version: '22'
+ node-version-file: '.nvmrc'
cache: 'npm'
- name: Setup Java
diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml
index 4ce6915d..75bd89dc 100644
--- a/.github/workflows/build-check.yml
+++ b/.github/workflows/build-check.yml
@@ -8,6 +8,7 @@ on:
- '!fastlane/**'
- 'packages/shared/**'
- 'package-lock.json'
+ - '.nvmrc'
- '.github/workflows/build-check.yml'
- '.github/actions/setup-build/**'
pull_request:
@@ -17,6 +18,7 @@ on:
- '!fastlane/**'
- 'packages/shared/**'
- 'package-lock.json'
+ - '.nvmrc'
- '.github/workflows/build-check.yml'
- '.github/actions/setup-build/**'
diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
index 97e52cca..c6053a18 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -28,7 +28,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
- node-version: '24'
+ node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
diff --git a/.github/workflows/docs-check.yml b/.github/workflows/docs-check.yml
index 20504268..1bfa3308 100644
--- a/.github/workflows/docs-check.yml
+++ b/.github/workflows/docs-check.yml
@@ -8,6 +8,7 @@ on:
paths:
- 'apps/docs/**'
- 'packages/shared/**'
+ - '.nvmrc'
- '.github/workflows/docs-check.yml'
workflow_dispatch:
@@ -23,7 +24,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
- node-version: '24'
+ node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 00000000..a45fd52c
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+24
diff --git a/README.md b/README.md
index 33128a9d..334ba993 100644
--- a/README.md
+++ b/README.md
@@ -78,7 +78,7 @@ Full docs at **[colota.app](https://colota.app)** covers configuration, server i
## Build from Source
-> **Requirements:** Node.js >= 22, Android SDK, JDK 17+
+> **Requirements:** Node.js 24 (see `.nvmrc`), Android SDK, JDK 17+
```bash
git clone https://github.com/dietrichmax/colota.git
diff --git a/apps/docs/docs/development/local-setup.md b/apps/docs/docs/development/local-setup.md
index 5145adba..c2b4b5b0 100644
--- a/apps/docs/docs/development/local-setup.md
+++ b/apps/docs/docs/development/local-setup.md
@@ -6,7 +6,7 @@ sidebar_position: 2
## Prerequisites
-- **Node.js** ≥ 20
+- **Node.js** 24 (see `.nvmrc` in the repo root)
- **npm** ≥ 9 (ships with Node.js)
- **Java Development Kit** (JDK) 17
- **Android SDK** (API level 36)