Skip to content

Commit

Permalink
Merge pull request #348 from jongwooo/chore/transitioning-from-node16…
Browse files Browse the repository at this point in the history
…-to-node20

chore: Transitioning from Node 16 to Node 20
  • Loading branch information
jongwooo authored Nov 27, 2023
2 parents 07a01a0 + 0f6d4d2 commit e7ac637
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e7ac637

Please sign in to comment.