From 04b13caea4b438da901d18a02bf730921c02a525 Mon Sep 17 00:00:00 2001 From: jongwooo Date: Mon, 5 Dec 2022 15:31:46 +0900 Subject: [PATCH] chore: Use built-in cache action to cache dependencies Signed-off-by: jongwooo --- .github/workflows/workflow.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 60410a6..3c28f5d 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -25,17 +25,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16.x - - name: Determine npm cache directory - id: npm-cache - run: | - echo "::set-output name=dir::$(npm config get cache)" - - name: Restore npm cache - uses: actions/cache@v3 - with: - path: ${{ steps.npm-cache.outputs.dir }} - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: npm - run: npm ci - name: Prettier Format Check run: npm run format-check