Skip to content

Commit 9d77a68

Browse files
committed
move cache & install to node setup
1 parent 716b99e commit 9d77a68

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

.github/workflows/lighthouse.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
uses: actions/setup-node@v3
1515
with:
1616
node-version: 16.x
17+
cache: 'npm'
18+
- run: npm ci
1719

1820
- name: Use Ruby 2.7.3
1921
uses: ruby/setup-ruby@v1
@@ -22,19 +24,6 @@ jobs:
2224
bundler-cache: true
2325
working-directory: docs
2426

25-
- name: Restore npm cache
26-
uses: actions/cache@v2
27-
with:
28-
path: ~/.npm
29-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30-
restore-keys: |
31-
${{ runner.os }}-node-
32-
33-
- name: Install dependencies
34-
run: |
35-
npm ci
36-
cd docs && rm -rf vendor && cd ..
37-
3827
- name: Build docs
3928
run: npm run build:docs
4029
env:

0 commit comments

Comments
 (0)