From d879449a89deb15f30a991cb7d9e82432149028c Mon Sep 17 00:00:00 2001 From: Rodger Jordas Date: Wed, 19 Oct 2022 22:51:18 +0800 Subject: [PATCH] Update workflow file --- .github/workflows/publish.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5aee5741..deeb81f4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,18 +10,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 with: - node-version: '14' + fetch-depth: 0 - - uses: actions/cache@v1 + - uses: actions/setup-node@v3 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version: 16 + cache: 'npm' - name: Install dependencies run: npm ci