Skip to content

Commit

Permalink
Cache npm dependencies in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Oct 5, 2021
1 parent b02fc8f commit 0703dc8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['12']
steps:
- uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
node-version: '12'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Compile grammar
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-to-crates-io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '12'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Compile grammar
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
with:
node-version: '12'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Compile grammar
Expand Down

0 comments on commit 0703dc8

Please sign in to comment.