From 0f6d4d2f48198bd29f6ea13b45ef074e8f29eee8 Mon Sep 17 00:00:00 2001 From: Jongwoo Han Date: Tue, 28 Nov 2023 00:36:05 +0900 Subject: [PATCH] chore: Transitioning from Node 16 to Node 20 --- .github/workflows/check-dist.yml | 7 +++++-- .github/workflows/lint.yml | 7 +++++-- README.md | 4 ++-- action.yml | 2 +- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 74128f2..fadd70f 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -11,16 +11,19 @@ on: - '**.md' workflow_dispatch: +env: + NODE_VERSION: 20.x + jobs: check-dist: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Setup Node.js 16.x + - name: Setup Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: ${{ env.NODE_VERSION }} cache: npm - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 57d1c03..c81db02 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -5,16 +5,19 @@ on: paths: - src/**/*.ts +env: + NODE_VERSION: 20.x + jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Setup Node.js 16.x + - name: Setup Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: ${{ env.NODE_VERSION }} cache: npm - name: Install dependencies diff --git a/README.md b/README.md index e4eff30..f6ad133 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,9 @@ This action currently caches the following directories: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 -- uses: jongwooo/gatsby-cache@v1.4.2 +- uses: jongwooo/gatsby-cache@v1.4.6 - name: Install dependencies run: npm ci diff --git a/action.yml b/action.yml index 50c10ce..1718418 100644 --- a/action.yml +++ b/action.yml @@ -12,7 +12,7 @@ outputs: cache-hit: description: "A boolean value to indicate an exact match was found for the key." runs: - using: "node16" + using: "node20" main: "dist/restore/index.js" post: "dist/save/index.js" post-if: success()