Skip to content

Commit

Permalink
chore: update github actions
Browse files Browse the repository at this point in the history
* use actions/checkout@v4
* use actions/setup-node@v4
* use actions/cache@v4
  • Loading branch information
djm158 committed Dec 19, 2024
1 parent 224b022 commit 7838801
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -19,20 +18,16 @@ jobs:
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

# Caching: root project
- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
cache: "yarn"

- name: Use node_modules cache
id: node-modules-cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }}
Expand Down

0 comments on commit 7838801

Please sign in to comment.