From 1c012f4dfaebd523f990e71ca3642457f8b73f9c Mon Sep 17 00:00:00 2001 From: Siddhant Date: Mon, 1 Jul 2024 21:20:46 -0500 Subject: [PATCH] chore: use Node 20 in GH actions --- .github/workflows/main.yml | 9 ++++++--- .github/workflows/pr.yml | 6 ++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b469e7d..cc0e11a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,9 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - run: corepack enable - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: "yarn" - run: yarn - run: yarn types @@ -22,9 +23,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - run: corepack enable - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: "yarn" - run: yarn - run: yarn test @@ -38,9 +40,10 @@ jobs: environment: Production steps: - uses: actions/checkout@v3 + - run: corepack enable - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: "yarn" - run: yarn - run: yarn wrangler deploy diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 2362a0a..f9c14b1 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,9 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - run: corepack enable - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: "yarn" - run: yarn - run: yarn types @@ -23,9 +24,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - run: corepack enable - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: "yarn" - run: yarn - run: yarn test