Skip to content

Commit fee858d

Browse files
committed
chore: cache node_modules in ci + lint fast install
1 parent 4aaf1e7 commit fee858d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
atom_channel: [stable, beta]
1919
steps:
2020
- uses: actions/checkout@v2
21+
- uses: actions/cache@v2
22+
env:
23+
cache-name: node_modules
24+
with:
25+
path: node_modules
26+
key: ${{ runner.os }}-${{ matrix.atom_channel }}-${{ hashFiles('package-lock.json') }}
27+
2128
- uses: UziTech/action-setup-atom@v1
2229
with:
2330
channel: ${{ matrix.atom_channel }}
@@ -51,7 +58,7 @@ jobs:
5158
node-version: "12.x"
5259
- name: Install NPM dependencies
5360
run: |
54-
npm install
61+
npm install --only=dev --ignore-scripts
5562
- name: Lint ✨
5663
run: npm run lint
5764

0 commit comments

Comments
 (0)