From c27b45d27d8195eac0917c5e9e5d6a737fbb51ef Mon Sep 17 00:00:00 2001 From: Matt Cowley Date: Wed, 28 May 2025 14:51:03 +0100 Subject: [PATCH 1/2] Update actions usage in deploy workflow --- .github/workflows/deploy.yml | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 18dea76..afb9dcb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,23 +12,13 @@ jobs: runs-on: ubuntu-latest 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 @@ -43,7 +33,7 @@ jobs: steps: - name: Trigger Website Staging Deployment - uses: actions/github-script@v5 + uses: actions/github-script@v7 with: github-token: ${{ secrets.USER_TOKEN }} script: | @@ -55,7 +45,7 @@ jobs: }); - name: Trigger Website Production Deployment - uses: actions/github-script@v5 + uses: actions/github-script@v7 with: github-token: ${{ secrets.USER_TOKEN }} script: | @@ -67,7 +57,7 @@ jobs: }); - name: Trigger API Staging Deployment - uses: actions/github-script@v5 + uses: actions/github-script@v7 with: github-token: ${{ secrets.USER_TOKEN }} script: | @@ -79,7 +69,7 @@ jobs: }); - name: Trigger API Production Deployment - uses: actions/github-script@v5 + uses: actions/github-script@v7 with: github-token: ${{ secrets.USER_TOKEN }} script: | From e60276f48a165c1459d841a4691dca975c10a462 Mon Sep 17 00:00:00 2001 From: Matt Cowley Date: Wed, 28 May 2025 14:51:38 +0100 Subject: [PATCH 2/2] Update actions usage in test workflow --- .github/workflows/test.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eef8f23..92aa31f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,23 +13,13 @@ jobs: runs-on: ubuntu-latest 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