diff --git a/.github/workflows/turf.yml b/.github/workflows/turf.yml index 69c47bdd7c..05ecb6c2b6 100644 --- a/.github/workflows/turf.yml +++ b/.github/workflows/turf.yml @@ -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