File tree Expand file tree Collapse file tree 2 files changed +25
-10
lines changed Expand file tree Collapse file tree 2 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -36,21 +36,29 @@ install: true
36
36
37
37
script :
38
38
- npm run patch && npm i
39
- - if [[ $TRAVIS_OS_NAME = "windows" ]]; then npm run build:release:win; else npm run build:release; fi
39
+ - npm run build:release
40
40
- cd test
41
41
- npm cit
42
42
- cd window-integration-tests
43
43
- npm cit
44
44
- cd ../..
45
45
46
+ stages :
47
+ - test
48
+ - name : deploy
49
+ if : (branch = develop) OR (tag IS present)
50
+
46
51
before_deploy :
47
52
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
48
53
49
54
deploy :
50
55
- provider : script
51
- skip_cleanup : true
52
- script : npm publish --access public
56
+ skip_cleanup : false
57
+ script : bash ./.build/pre-release.sh
58
+ on :
59
+ branch : develop
60
+ - provider : script
61
+ skip_cleanup : false
62
+ script : bash ./.build/release.sh
53
63
on :
54
64
tags : true
55
- node_js : ' 12'
56
-
Original file line number Diff line number Diff line change 3
3
image : Visual Studio 2017
4
4
5
5
# Test against these versions of Io.js and Node.js.
6
- environment :
7
- matrix :
8
- # node.js
9
- - nodejs_version : " 10"
6
+ nodejs_version : " 12"
10
7
11
8
cache :
12
9
- node_modules
@@ -25,7 +22,7 @@ install:
25
22
- ps : ' "//registry.npmjs.org/:_authToken=$env:npm_auth_token`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII'
26
23
- npm whoami
27
24
- npm run patch && npm install
28
- - npm run build:release:win
25
+ - npm run build:release
29
26
30
27
test_script :
31
28
# Output useful info for debugging.
@@ -42,5 +39,15 @@ test_script:
42
39
on_success :
43
40
- IF defined APPVEYOR_REPO_TAG_NAME npm publish
44
41
42
+ deploy :
43
+ - provider : script
44
+ path : ./.build/release.ps1
45
+ on :
46
+ APPVEYOR_REPO_TAG : true
47
+ - provider : script
48
+ path : ./.build/pre-release.ps1
49
+ on :
50
+ branch : develop
51
+
45
52
build : off
46
53
version : " {build}"
You can’t perform that action at this time.
0 commit comments