taro-s4s
Version:
Nerv-multi多端开发解决方案
28 lines (25 loc) • 532 B
YAML
language: node_js
sudo: false
node_js:
- "10"
cache:
directories:
- node_modules
jobs:
include:
- stage: test
script:
- npm install
- npm run bootstrap
- npm run build
- npm run test
- stage: deploy
if: (branch = master) AND (NOT (type IN (pull_request)))
script: yarn run build:docs
deploy:
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: docs/_book
on:
branch: master