代码拉取完成,页面将自动刷新
version: ">= 1.0.0"
language: node_js
node_js:
- "10"
os: linux
dist: xenial
arch: amd64
cache:
yarn: true
directories:
- node_modules
jobs:
include:
- stage: test
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn --frozen-lockfile
before_script:
- yarn run clean:component
- yarn run build:component
script:
- yarn run test:ci
- stage: release
if: "(tag =~ /^v3/) AND (NOT (type IN (pull_request)))"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn --frozen-lockfile
before_script:
- yarn run clean:component
script:
- yarn run build:component
before_deploy:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
deploy:
provider: script
skip_cleanup: true
script: "yarn run publish"
on:
tags: true
repo: NervJS/taro-ui
- stage: deploy
if: "(branch = master) AND (NOT (type IN (pull_request)))"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn --frozen-lockfile
before_script:
- yarn run clean
script:
- yarn run build
after_script:
- cd packages/taro-ui-docs/dist
- git init
- git add -A
- git commit -m "Update Document"
- git push --force --quiet "https://${GITHUB_TOKEN}@${GH_REF}" master:gh-pages
env:
global:
- GH_REF=github.com/NervJS/taro-ui.git
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。