Skip to content

Commit 75262c1

Browse files
committed
ci: update build-docs
1 parent 8059ba2 commit 75262c1

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/build-docs.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Cache node modules
14-
uses: actions/cache@v2
15-
env:
16-
cache-name: cache-node-modules
17-
with:
18-
path: |
19-
~/.npm
20-
**/node_modules
21-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
22-
restore-keys: |
23-
${{ runner.os }}-build-${{ env.cache-name }}-
24-
${{ runner.os }}-build-
25-
${{ runner.os }}-
2613
- name: Build docs
2714
run: |
28-
npm install --dev
29-
npm run docs
15+
rm package-lock.json
16+
npm install --also=dev
17+
npm run test
3018
- name: Deploy
3119
uses: peaceiris/actions-gh-pages@v3
3220
with:

0 commit comments

Comments
 (0)