From cf55bd7e7db79cb17285e5fbe30b62ed1cfcb6fa Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Thu, 12 Sep 2024 16:05:42 -0700 Subject: [PATCH] fix setup-node --- .github/workflows/deploy.yml | 6 ++++-- .github/workflows/test-deploy.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4cebe99..75e825f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,5 +1,8 @@ name: Deploy to GitHub Pages +env: + NODE_VERSION: 22 + on: push: branches: @@ -18,8 +21,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-node@v4 with: - node-version: 20 - cache: yarn + node-version: ${{env.NODE_VERSION}} - name: Install yarn run: corepack enable && yarn install - name: Install dependencies diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index ac16bff..4b01d19 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -1,5 +1,8 @@ name: Test deployment +env: + NODE_VERSION: 22 + on: pull_request: branches: @@ -17,8 +20,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-node@v4 with: - node-version: 20 - cache: yarn + node-version: ${{env.NODE_VERSION}} - name: Install yarn run: corepack enable && yarn install - name: Install dependencies