Skip to content

Commit fce2d85

Browse files
author
sunss
committed
chore(deploy.yml): update config
1 parent 1262182 commit fce2d85

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,13 @@ jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: checkout
1213
- uses: actions/checkout@v2
13-
- name: Get yarn cache directory path
14-
id: yarn-cache-dir-path
15-
run: echo "::set-output name=dir::$(yarn cache dir)"
16-
- name: Cache yarn cache
17-
uses: actions/cache@v2
18-
id: cache-yarn-cache
19-
with:
20-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
21-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22-
restore-keys: |
23-
${{ runner.os }}-yarn-
24-
- name: Cache node_modules
25-
id: cache-node-modules
26-
uses: actions/cache@v2
27-
with:
28-
path: node_modules
29-
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
30-
restore-keys: |
31-
${{ runner.os }}-${{ matrix.node-version }}-nodemodules-
32-
- run: yarn --ignore-engines
33-
if: |
34-
steps.cache-yarn-cache.outputs.cache-hit != 'true' ||
35-
steps.cache-node-modules.outputs.cache-hit != 'true'
14+
3615
- name: build
37-
run: npm run build
16+
run: |
17+
npm install
18+
npm run build
3819
3920
- name: Deploy
4021
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)