From 7ec2c013c645b73ffa1b9b9600b693209939ad4f Mon Sep 17 00:00:00 2001 From: "Daniel A.C. Martin" Date: Tue, 14 Feb 2023 20:46:10 +0000 Subject: [PATCH] CI: Update Node.js to v18 --- .github/actions/setup/action.yml | 2 +- .github/workflows/change-assurance.yml | 6 +++--- .github/workflows/deploy-to-heroku.yml | 2 +- .github/workflows/deploy-to-netlify.yml | 2 +- .github/workflows/deploy.yml | 4 ++-- .github/workflows/publish.yml | 2 +- .github/workflows/static-security-analysis.yml | 2 +- .github/workflows/update-built-files.yml | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index aa129f2d5..8cd9b48a3 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -4,7 +4,7 @@ inputs: node: description: The version of Node.js to use. required: false - default: 16 + default: 18 frozen-lockfile: description: Whether to require a frozen lock-file required: false diff --git a/.github/workflows/change-assurance.yml b/.github/workflows/change-assurance.yml index cbb77ec5c..4a57e6338 100644 --- a/.github/workflows/change-assurance.yml +++ b/.github/workflows/change-assurance.yml @@ -49,7 +49,7 @@ jobs: - name: Setup uses: ./.github/actions/setup with: - node: 16 + node: 18 - name: Build libraries run: npm run libs:build @@ -70,7 +70,7 @@ jobs: - name: Setup uses: ./.github/actions/setup with: - node: 16 + node: 18 - name: Build uses: ./.github/actions/build-app @@ -102,7 +102,7 @@ jobs: - name: Setup uses: ./.github/actions/setup with: - node: 16 + node: 18 - name: Download build directory uses: actions/download-artifact@v3 diff --git a/.github/workflows/deploy-to-heroku.yml b/.github/workflows/deploy-to-heroku.yml index fca3ba807..0abbc91f8 100644 --- a/.github/workflows/deploy-to-heroku.yml +++ b/.github/workflows/deploy-to-heroku.yml @@ -74,7 +74,7 @@ jobs: cypress-project-id: ${{ secrets.CYPRESS_PROJECT_ID }} cypress-record-key: ${{ secrets.CYPRESS_RECORD_KEY }} deployment: heroku - node: 16 + node: 18 smoke: true - name: Scan service for vulnerabilities diff --git a/.github/workflows/deploy-to-netlify.yml b/.github/workflows/deploy-to-netlify.yml index 2b961a71f..5b2c264c0 100644 --- a/.github/workflows/deploy-to-netlify.yml +++ b/.github/workflows/deploy-to-netlify.yml @@ -80,7 +80,7 @@ jobs: cypress-project-id: ${{ secrets.CYPRESS_PROJECT_ID }} cypress-record-key: ${{ secrets.CYPRESS_RECORD_KEY }} deployment: netlify - node: 16 + node: 18 smoke: true - name: Scan service for vulnerabilities diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8076cb569..527cce0ef 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,7 +15,7 @@ jobs: - name: Setup uses: ./.github/actions/setup with: - node: 16 + node: 18 - name: Push Storybook to Chromatic uses: chromaui/action@v1 @@ -33,7 +33,7 @@ jobs: uses: './.github/workflows/deploy-to-netlify.yml' with: app: govuk-docs - node: 16 + node: 18 production-branch: master secrets: CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ea35832fd..fb36d6462 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: - name: Setup uses: ./.github/actions/setup with: - node: 16 + node: 18 frozen-lockfile: true - name: Publish diff --git a/.github/workflows/static-security-analysis.yml b/.github/workflows/static-security-analysis.yml index e9cd0f988..5e44cf55a 100644 --- a/.github/workflows/static-security-analysis.yml +++ b/.github/workflows/static-security-analysis.yml @@ -22,7 +22,7 @@ jobs: - name: Setup uses: ./.github/actions/setup with: - node: 16 + node: 18 - name: Scan dependencies uses: ./.github/actions/scan-dependencies diff --git a/.github/workflows/update-built-files.yml b/.github/workflows/update-built-files.yml index 31933f82e..17f222c34 100644 --- a/.github/workflows/update-built-files.yml +++ b/.github/workflows/update-built-files.yml @@ -19,7 +19,7 @@ jobs: - name: Setup uses: ./.github/actions/setup with: - node: 16 + node: 18 - name: Scan dependencies uses: ./.github/actions/scan-dependencies