From 6a34534fa681619c1c7fdbbed340742605490edc Mon Sep 17 00:00:00 2001 From: Harry Mellor <19981378+hmellor@users.noreply.github.com> Date: Wed, 6 Mar 2024 13:12:50 +0000 Subject: [PATCH] Revert "Build on node 18, 20, 21. Deploy on main using node 21 (#60)" (#62) This reverts commit 1f342a896a8e5c1463dca21ad2bf10e74dfebfa3. --- .github/workflows/pages.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index f69af583..2988eba4 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -13,16 +13,13 @@ concurrency: jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - version: [18, 20, 21] steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Node uses: actions/setup-node@v4 with: - node-version: ${{ matrix.version }} + node-version: '21' cache: 'npm' - name: Install dependencies run: | @@ -31,17 +28,13 @@ jobs: - name: Build run: npm run build - name: Setup Pages - if: github.ref == 'refs/heads/main' && matrix.version == '21' uses: actions/configure-pages@v4 - name: Upload artifact - if: github.ref == 'refs/heads/main' && matrix.version == '21' - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: './dist' deploy: - # Only deploy on main branch - if: github.ref == 'refs/heads/main' needs: build # Grant GITHUB_TOKEN the permissions required to make a Pages deployment permissions: