From 4829e4bc369e6c08a3f206afb2196c89af2dec1f Mon Sep 17 00:00:00 2001 From: Matt Cowley Date: Wed, 28 May 2025 14:56:20 +0100 Subject: [PATCH 1/3] Update actions usage in deploy-prod workflow --- .github/workflows/deployment-production.yml | 40 ++++++--------------- 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/.github/workflows/deployment-production.yml b/.github/workflows/deployment-production.yml index 13bd979..b889ae8 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 @@ -48,23 +38,13 @@ jobs: NODE_OPTIONS: --unhandled-rejections=strict steps: - - uses: actions/checkout@v2 - - - 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/checkout@v4 - - 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 1263ba90c8c3cb1a9e5e05b98ff01b58d7171c4c Mon Sep 17 00:00:00 2001 From: Matt Cowley Date: Wed, 28 May 2025 14:57:02 +0100 Subject: [PATCH 2/3] Update actions usage in deploy-staging workflow --- .github/workflows/deployment-staging.yml | 40 ++++++------------------ 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/.github/workflows/deployment-staging.yml b/.github/workflows/deployment-staging.yml index fd6fa35..b6de991 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 @@ -48,23 +38,13 @@ jobs: NODE_OPTIONS: --unhandled-rejections=strict steps: - - uses: actions/checkout@v2 - - - 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/checkout@v4 - - 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 3f4750038a45aa53e88f2c8463ba875ae94aaad3 Mon Sep 17 00:00:00 2001 From: Matt Cowley Date: Wed, 28 May 2025 14:57:19 +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