Skip to content

Commit 0703dc8

Browse files
committed
Cache npm dependencies in CI
1 parent b02fc8f commit 0703dc8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/build.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ on: [push]
44
jobs:
55
build:
66
runs-on: ubuntu-latest
7-
strategy:
8-
matrix:
9-
node: ['12']
107
steps:
118
- uses: actions/checkout@v2
129
- name: Set up Node
1310
uses: actions/setup-node@v2
1411
with:
15-
node-version: ${{ matrix.node }}
12+
node-version: '12'
13+
cache: 'npm'
1614
- name: Install dependencies
1715
run: npm install
1816
- name: Compile grammar

.github/workflows/deploy-to-crates-io.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
uses: actions/setup-node@v2
1414
with:
1515
node-version: '12'
16+
cache: 'npm'
1617
- name: Install dependencies
1718
run: npm install
1819
- name: Compile grammar

.github/workflows/deploy-to-npm.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
with:
1515
node-version: '12'
1616
registry-url: 'https://registry.npmjs.org'
17+
cache: 'npm'
1718
- name: Install dependencies
1819
run: npm install
1920
- name: Compile grammar

0 commit comments

Comments
 (0)