.travis.yml 443 B

1234567891011121314151617181920212223
  1. language: node_js
  2. sudo: required
  3. node_js:
  4. - 10.0.0
  5. cache:
  6. directories:
  7. - node_modules
  8. before_install:
  9. - export TZ='Asia/Shanghai'
  10. install:
  11. - npm install
  12. script:
  13. - npm run publish
  14. after_script:
  15. - git init
  16. - git config user.name "${USER_NAME}"
  17. - git config user.email "${USER_EMAIL}"
  18. - git add .
  19. - git commit -m "publish"
  20. - git push -f https://${access_token}@github.com/yingye/weapp-qrcode HEAD:master
  21. branch: master