From e5673aab16b4039f5321058c116dd832889c20e4 Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Thu, 1 Dec 2022 10:19:58 -0800 Subject: [PATCH] ci: dep caching --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b87247..d72c739 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: CI -on: [push] +on: + push: + branches: + - main + pull_request: jobs: # Running linting on Node 14 because of https://github.com/lo1tuma/eslint-plugin-mocha/issues/322 @@ -11,6 +15,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 14 + cache: npm - run: npm install -g npm@7 - run: npm ci @@ -33,6 +38,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + cache: npm # Node 14 still ships with npm@6 so for compatibility reasons we're upping this. - name: Install npm@8