mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Merge pull request #2208 from tailwindlabs/cache-node-modules-on-ci
Cache node modules in CI
This commit is contained in:
commit
8fc70879ee
14
.github/workflows/nodejs.yml
vendored
14
.github/workflows/nodejs.yml
vendored
@ -23,7 +23,19 @@ jobs:
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm install
|
||||
- name: Use cached node_modules
|
||||
id: cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: node_modules
|
||||
key: nodeModules-${{ hashFiles('**/yarn.lock') }}-${{ matrix.node-version }}
|
||||
restore-keys: |
|
||||
nodeModules-
|
||||
- name: Install dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: npm install
|
||||
env:
|
||||
CI: true
|
||||
- run: npm run prepare
|
||||
- run: npm test
|
||||
env:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user