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: | 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