From e4361d000e3332248b3b934970725eed280e4c7e Mon Sep 17 00:00:00 2001 From: andrewstech Date: Mon, 24 Jan 2022 22:18:33 +0000 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b3372ff25..a2dd1d8ae 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,14 +18,22 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Install Node.js + - name: Set up Node.js uses: actions/setup-node@v1 with: node-version: '16.6.1' - cache: 'npm' - - name: Install NPM packages - run: npm ci + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-node- + ${{ runner.OS }}- + + - name: Install dependencies + run: CI=false npm install - name: Build project run: CI=false npm run build