travis update

This commit is contained in:
thuhole
2020-06-19 11:50:04 +08:00
parent 12d1d2fe0c
commit 69eb8ea41d

View File

@@ -1,10 +1,13 @@
language: node_js
node_js:
- 12
cache:
directories:
- node_modules
after_success:
- git config --global user.name "thuhole"
- git config --global user.email "thuhole@users.noreply.github.com"
- git remote rm origin
- git remote add origin https://thuhole:${GH_TOKEN}@github.com/thuhole/webhole.git
- REACT_APP_BUILD_INFO=$(TZ=America/New_York date +"%y%m%d%H%M%S") npm run deploy
- CI=false REACT_APP_BUILD_INFO=$(TZ=Asia/Shanghai date +"%y%m%d%H%M%S") npm run deploy