diff --git a/.github/workflows/check-types.yml b/.github/workflows/check-types.yml index a8c933d87e..4fe5ff2207 100644 --- a/.github/workflows/check-types.yml +++ b/.github/workflows/check-types.yml @@ -19,8 +19,9 @@ jobs: fetch-depth: 0 - name: Use Node ${{ matrix.node }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - - run: yarn + cache: "yarn" + - run: yarn --frozen-lockfile - run: yarn type-check diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e89e712f52..496977707f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,16 +18,15 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 2 - - name: Use Node.js 14.x - uses: actions/setup-node@v2 + - name: Use Node ${{ matrix.node }} + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - # cache: "yarn" - # cache-dependency-path: yarn.lock + cache: "yarn" - name: Install deps if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn + run: yarn --frozen-lockfile - name: Lint run: yarn lint:report