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 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",