From 30ee20a59d089ce35ebdc22b2f1658dd5178d16b Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Mon, 13 Dec 2021 15:04:20 -0500 Subject: [PATCH] Upgrade actions/setup-node to 2.5.x --- .github/workflows/ci-go.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci-go.yml b/.github/workflows/ci-go.yml index d51c922a2ea23..425f70439c8f9 100644 --- a/.github/workflows/ci-go.yml +++ b/.github/workflows/ci-go.yml @@ -28,21 +28,11 @@ jobs: id: go - name: Setup Node.js environment - uses: actions/setup-node@v1.4.4 - with: - node-version: 14 - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v2 - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) + uses: actions/setup-node@v2.5.0 with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + cache: yarn + cache-dependency-path: yarn.lock + node-version: 14.x - name: Yarn Install run: yarn install