Skip to content

Commit

Permalink
update github actions to latest versions (#2502)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLMilner authored Sep 30, 2023
1 parent b0fc70c commit 1a155df
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/turf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,12 @@ jobs:
node-version: [16.x, 18.x, 20.x]

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

# figure out the yarn cache directory
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

# cache the yarn data to speed up builds
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: "yarn"

- run: yarn --frozen-lockfile
- run: git diff --exit-code
Expand Down

0 comments on commit 1a155df

Please sign in to comment.