From bea41bf66ddd572c99bc730cb2e2f2d8767ad55b Mon Sep 17 00:00:00 2001 From: Andreas Date: Sat, 13 Mar 2021 21:06:10 +0100 Subject: [PATCH] Update to NPM 7 in build script (#575) Co-authored-by: Soitora Co-authored-by: Soitora --- .github/workflows/push.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 96f85c9b..6c2f659a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -12,15 +12,27 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Install Node v12 - uses: actions/setup-node@v1 + - name: Setup Node 12 + uses: actions/setup-node@v2 with: node-version: 12 + + - name: Setup NPM 7 + run: npm install -g npm@7 + + - name: Check cache + uses: actions/cache@v2 + id: npm-cache + with: + path: '**/node_modules' + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + + - name: Install dependencies + if: steps.npm-cache.outputs.cache-hit != 'true' + run: npm install - name: Build website - run: | - npm install - npm run build + run: npm run build - name: Add .nojekyll run: touch ./public/.nojekyll