From bf8ca392d576874cb7d7f2725d4c416b6ed484b4 Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Sun, 18 Jul 2021 22:17:24 +0200 Subject: [PATCH] ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 87360d3..7f3474a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,7 @@ name: Build and Test on: - pull_request: + pull_request: null push: branches: - main @@ -11,9 +11,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 12.x + cache: npm - uses: actions/checkout@v2 - run: npm ci - run: npm run build