Skip to content

Commit

Permalink
chore: cache dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Nov 25, 2020
1 parent 6325307 commit c542234
Show file tree
Hide file tree
Showing 3 changed files with 16,753 additions and 5 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,30 @@ jobs:
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Set up node
uses: actions/setup-node@v2-beta
with:
node-version: '12'
check-latest: true

- name: Cache node modules
uses: actions/cache@v2
id: cache
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install

- name: Install and Build
run: |
npm install
- name: Build
run:
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ yarn-debug.log*
yarn-error.log*

dist
package-lock.json
lib

node_modules
Expand Down
Loading

0 comments on commit c542234

Please sign in to comment.