From 2f63d9acafc6fe69590c014c9917f1180f91b35e Mon Sep 17 00:00:00 2001 From: Lilach Date: Mon, 27 Jul 2026 17:03:11 +0100 Subject: [PATCH 1/2] upgrade app stack and pipelines to use node 24 --- devops-pipelines/backend/backend-build-and-deploy.yml | 2 +- devops-pipelines/templates/ui-build-and-deploy-stages.yml | 4 ++-- devops-pipelines/ui/ui-pr-build-and-test.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/devops-pipelines/backend/backend-build-and-deploy.yml b/devops-pipelines/backend/backend-build-and-deploy.yml index ddb502c1..69187f60 100644 --- a/devops-pipelines/backend/backend-build-and-deploy.yml +++ b/devops-pipelines/backend/backend-build-and-deploy.yml @@ -53,7 +53,7 @@ stages: appName: 'fa-cmrc-api-dev' environment: 'dev' postmanCollectionPath: '$(System.DefaultWorkingDirectory)/src/backend/postman/RegisterCaseAPITests.postman_collection.json' - nodeVersion: '20.x' + nodeVersion: '24.x' - template: ../templates/backend-deploy-stages.yml parameters: diff --git a/devops-pipelines/templates/ui-build-and-deploy-stages.yml b/devops-pipelines/templates/ui-build-and-deploy-stages.yml index f74e4001..4aafef34 100644 --- a/devops-pipelines/templates/ui-build-and-deploy-stages.yml +++ b/devops-pipelines/templates/ui-build-and-deploy-stages.yml @@ -54,7 +54,7 @@ stages: variables: - group: cmrc-ui-config-${{ parameters.environment }} - name: nodeVersion - value: '20.x' + value: '24.x' - name: workingDir value: 'src/ui-spa' steps: @@ -117,7 +117,7 @@ stages: deployToSlotOrASE: ${{ parameters.deployToSlot }} slotName: ${{ parameters.slotName }} packageForLinux: '$(Pipeline.Workspace)/$(buildArtifact)' - RuntimeStack: 'NODE|20-lts' + RuntimeStack: 'NODE|24-lts' StartupCommand: 'pm2 serve /home/site/wwwroot/ --no-daemon --spa' displayName: 'Deploy app to ${{ parameters.environment }}' diff --git a/devops-pipelines/ui/ui-pr-build-and-test.yml b/devops-pipelines/ui/ui-pr-build-and-test.yml index 140075d7..f55a14c5 100644 --- a/devops-pipelines/ui/ui-pr-build-and-test.yml +++ b/devops-pipelines/ui/ui-pr-build-and-test.yml @@ -12,7 +12,7 @@ pool: 'CMRC PreProd Pool' variables: - name: nodeVersion - value: '20.x' + value: '24.x' - name: workingDir value: src/ui-spa - name: covDir From d926d922abc1f1d30de6edc6bd80ea8d55463346 Mon Sep 17 00:00:00 2001 From: Lilach Date: Fri, 31 Jul 2026 12:30:01 +0100 Subject: [PATCH 2/2] enforce strict version of node for the project --- src/ui-spa/.npmrc | 1 + src/ui-spa/package.json | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 src/ui-spa/.npmrc diff --git a/src/ui-spa/.npmrc b/src/ui-spa/.npmrc new file mode 100644 index 00000000..4fd02195 --- /dev/null +++ b/src/ui-spa/.npmrc @@ -0,0 +1 @@ +engine-strict=true \ No newline at end of file diff --git a/src/ui-spa/package.json b/src/ui-spa/package.json index 3d6c8afc..2dc97b69 100644 --- a/src/ui-spa/package.json +++ b/src/ui-spa/package.json @@ -3,6 +3,10 @@ "private": true, "version": "0.0.0", "type": "module", + "engines": { + "node": "24.x", + "npm": "11.x" + }, "scripts": { "dev": "vite", "build": "tsc -b && vite build && rimraf dist/mockServiceWorker.js",