File tree Expand file tree Collapse file tree 1 file changed +26
-10
lines changed Expand file tree Collapse file tree 1 file changed +26
-10
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
node_js :
3
3
- " 10"
4
-
4
+ os : linux
5
+ dist : xenial
6
+ arch : amd64
5
7
cache :
6
8
yarn : true
7
9
directories :
8
10
- node_modules
9
-
10
11
jobs :
11
12
include :
12
-
13
13
- stage : test
14
14
before_install :
15
15
- curl -o- -L https://yarnpkg.com/install.sh | bash
21
21
- yarn run build:component
22
22
script :
23
23
- yarn run test:ci
24
-
25
- - stage : deploy
26
- if : (branch = master) AND (NOT (type IN (pull_request)))
24
+ - stage : release
25
+ if : " (branch IN (master, ui-next)) AND (NOT (type IN (pull_request)))"
27
26
before_install :
28
27
- curl -o- -L https://yarnpkg.com/install.sh | bash
29
28
- export PATH="$HOME/.yarn/bin:$PATH"
@@ -33,15 +32,32 @@ jobs:
33
32
- yarn run clean
34
33
script :
35
34
- yarn run build
35
+ before_deploy :
36
+ - echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
36
37
deploy :
37
- - yarn run publish
38
- after_deploy :
38
+ provider : script
39
+ skip_cleanup : true
40
+ script : " yarn run publish"
41
+ on :
42
+ tags : true
43
+ repo : NervJS/taro-ui
44
+ - stage : deploy
45
+ if : " (branch = master) AND (NOT (type IN (pull_request)))"
46
+ before_install :
47
+ - curl -o- -L https://yarnpkg.com/install.sh | bash
48
+ - export PATH="$HOME/.yarn/bin:$PATH"
49
+ install :
50
+ - yarn --frozen-lockfile
51
+ before_script :
52
+ - yarn run clean
53
+ script :
54
+ - yarn run build
55
+ after_script :
39
56
- cd packages/taro-ui-docs/dist
40
57
- git init
41
58
- git add -A
42
59
- git commit -m "Update Document"
43
60
- git push --force --quiet "https://${GITHUB_TOKEN}@${GH_REF}" master:gh-pages
44
-
45
61
env :
46
62
global :
47
- - GH_REF : github.com/NervJS/taro-ui.git
63
+ - GH_REF= github.com/NervJS/taro-ui.git
You can’t perform that action at this time.
0 commit comments