diff --git a/.github/workflows/build-and-deploy.yaml b/.github/workflows/build-and-deploy.yaml index 79e9680..766dc08 100644 --- a/.github/workflows/build-and-deploy.yaml +++ b/.github/workflows/build-and-deploy.yaml @@ -13,6 +13,17 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v3 # workflow에서 액세스할 수 있도록 저장소를 체크아웃 + - name: Cache node modules + id: node-cache + uses: actions/cache@v2 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: node_modules + key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node-modules- - name: Install dependencies run: yarn install