diff --git a/.github/workflows/deploy-main-branches.yml b/.github/workflows/deploy-main-branches.yml
index ee6e23c84..5272e56da 100644
--- a/.github/workflows/deploy-main-branches.yml
+++ b/.github/workflows/deploy-main-branches.yml
@@ -11,6 +11,9 @@ concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
+env:
+ NODE_VERSION: 24
+
jobs:
detect-repo-owner:
name: Detect branch and appropriate server
@@ -47,7 +50,14 @@ jobs:
- name: Get Node.js
uses: actions/setup-node@v6
with:
- node-version: 20
+ node-version: ${{ env.NODE_VERSION }}
+
+ - name: Ensure our node version matches the main repo's version
+ run: |
+ [[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.ref_name }}/pom.xml | \
+ grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
+ && exit 0 \
+ || (echo "Node version does not match"; exit 1)
- name: Run npm ci
run: npm ci
diff --git a/.github/workflows/pr-deploy-test-branch.yml b/.github/workflows/pr-deploy-test-branch.yml
index 027965d4c..be067dd3f 100644
--- a/.github/workflows/pr-deploy-test-branch.yml
+++ b/.github/workflows/pr-deploy-test-branch.yml
@@ -10,6 +10,9 @@ concurrency:
group: pull-request-page
cancel-in-progress: false
+env:
+ NODE_VERSION: 24
+
jobs:
detect-repo-owner:
if: github.repository_owner == 'opencast'
@@ -53,7 +56,14 @@ jobs:
- name: Get Node.js
uses: actions/setup-node@v6
with:
- node-version: 20
+ node-version: ${{ env.NODE_VERSION }}
+
+ - name: Ensure our node version matches the main repo's version
+ run: |
+ [[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.base_ref }}/pom.xml | \
+ grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
+ && exit 0 \
+ || (echo "Node version does not match"; exit 1)
- name: Run npm ci
run: npm ci
diff --git a/.github/workflows/pr-test-build.yml b/.github/workflows/pr-test-build.yml
index a225829ef..468bc9e26 100644
--- a/.github/workflows/pr-test-build.yml
+++ b/.github/workflows/pr-test-build.yml
@@ -9,6 +9,9 @@ on:
- develop
- r/*
+env:
+ NODE_VERSION: 24
+
jobs:
check-npm-test:
runs-on: ubuntu-latest
@@ -20,7 +23,22 @@ jobs:
- name: Get Node.js
uses: actions/setup-node@v6
with:
- node-version: 20
+ node-version: ${{ env.NODE_VERSION }}
+
+ - name: Ensure our node version matches the main repo's version
+ if: github.event_name == 'pull_request'
+ run: |
+ [[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.base_ref }}/pom.xml | \
+ grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
+ && exit 0 \
+ || (echo "Node version does not match"; exit 1)
+ - name: Ensure our node version matches the main repo's version
+ if: github.event_name == 'push'
+ run: |
+ [[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.ref_name }}/pom.xml | \
+ grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
+ && exit 0 \
+ || (echo "Node version does not match"; exit 1)
- name: Run npm ci
run: npm ci
diff --git a/.github/workflows/pr-test-playwright.yml b/.github/workflows/pr-test-playwright.yml
index b284df7b3..8f063feac 100644
--- a/.github/workflows/pr-test-playwright.yml
+++ b/.github/workflows/pr-test-playwright.yml
@@ -8,6 +8,10 @@ on:
branches:
- develop
- r/*
+
+env:
+ NODE_VERSION: 24
+
jobs:
test:
@@ -20,7 +24,22 @@ jobs:
- name: Install Node Dependency
uses: actions/setup-node@v6
with:
- node-version: 20
+ node-version: ${{ env.NODE_VERSION }}
+
+ - name: Ensure our node version matches the main repo's version
+ if: github.event_name == 'pull_request'
+ run: |
+ [[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.base_ref }}/pom.xml | \
+ grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
+ && exit 0 \
+ || (echo "Node version does not match"; exit 1)
+ - name: Ensure our node version matches the main repo's version
+ if: github.event_name == 'push'
+ run: |
+ [[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.ref_name }}/pom.xml | \
+ grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
+ && exit 0 \
+ || (echo "Node version does not match"; exit 1)
- name: Install dependencies
run: npm ci
diff --git a/pom.xml b/pom.xml
index 5ab1f8c33..ef3d8141a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,7 +13,6 @@
${project.basedir}/../..
false
- v20.10.0
@@ -101,7 +100,7 @@
com.github.eirslett
frontend-maven-plugin
- ${nodejs.version}
+ ${node.version}
target
/editor-ui