fix setup-node

This commit is contained in:
Evan Simkowitz
2024-09-12 16:05:42 -07:00
parent 09e9cf61a8
commit cf55bd7e7d
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -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
+4 -2
View File
@@ -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