From 5e2e06871487f1c1f2806100f6ad85acf4bce48d Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Thu, 30 Dec 2021 15:05:57 +0100 Subject: [PATCH] ci(workflow): add cache to workflows using actions/setup-node (#287) --- .github/workflows/build-test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 9a3aa93b..a80ab189 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -3,14 +3,14 @@ name: build-test on: pull_request: paths-ignore: - - '**.md' - push: + - '**.md' + push: branches: - main - releases/* paths-ignore: - '**.md' - + jobs: build: runs-on: ${{ matrix.os }} @@ -23,6 +23,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: 12.x + cache: npm - run: npm ci - run: npm run build - run: npm run format-check