From 032642fcfdd6e1f7a69fb99fa3c5beb18f90fd76 Mon Sep 17 00:00:00 2001 From: Matt Cowley Date: Wed, 28 May 2025 14:53:51 +0100 Subject: [PATCH 1/3] Update actions usage in deploy-prod workflow --- .github/workflows/deployment-production.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deployment-production.yml b/.github/workflows/deployment-production.yml index 7027c33..e60022d 100644 --- a/.github/workflows/deployment-production.yml +++ b/.github/workflows/deployment-production.yml @@ -15,23 +15,13 @@ jobs: NODE_OPTIONS: --unhandled-rejections=strict steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Read .nvmrc - run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" - id: nvm - - - name: Use Node.js (.nvmrc) - uses: actions/setup-node@v2 - with: - node-version: ${{ steps.nvm.outputs.NVMRC }} - - - uses: actions/cache@v2 + - name: Use Node.js + uses: actions/setup-node@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version-file: .nvmrc + cache: npm - name: Install Dependencies run: npm ci From b05b5f90564d4da16e7ba7ead5c9b4ffb0e8bdb6 Mon Sep 17 00:00:00 2001 From: Matt Cowley Date: Wed, 28 May 2025 14:54:31 +0100 Subject: [PATCH 2/3] Update actions usage in deploy-staging workflow --- .github/workflows/deployment-staging.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deployment-staging.yml b/.github/workflows/deployment-staging.yml index 11b3dc0..88726f3 100644 --- a/.github/workflows/deployment-staging.yml +++ b/.github/workflows/deployment-staging.yml @@ -15,23 +15,13 @@ jobs: NODE_OPTIONS: --unhandled-rejections=strict steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Read .nvmrc - run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" - id: nvm - - - name: Use Node.js (.nvmrc) - uses: actions/setup-node@v2 - with: - node-version: ${{ steps.nvm.outputs.NVMRC }} - - - uses: actions/cache@v2 + - name: Use Node.js + uses: actions/setup-node@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version-file: .nvmrc + cache: npm - name: Install Dependencies run: npm ci From 80b1ac5b73e6116b2700eaead7a9d7415acc56d2 Mon Sep 17 00:00:00 2001 From: Matt Cowley Date: Wed, 28 May 2025 14:55:00 +0100 Subject: [PATCH 3/3] Update actions usage in test workflow --- .github/workflows/test-workflow.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test-workflow.yml b/.github/workflows/test-workflow.yml index 18e0f6e..9ac04cf 100644 --- a/.github/workflows/test-workflow.yml +++ b/.github/workflows/test-workflow.yml @@ -16,23 +16,13 @@ jobs: NODE_OPTIONS: --unhandled-rejections=strict steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Read .nvmrc - run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" - id: nvm - - - name: Use Node.js (.nvmrc) - uses: actions/setup-node@v2 - with: - node-version: ${{ steps.nvm.outputs.NVMRC }} - - - uses: actions/cache@v2 + - name: Use Node.js + uses: actions/setup-node@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version-file: .nvmrc + cache: npm - name: Install Dependencies run: npm ci