File tree Expand file tree Collapse file tree 3 files changed +21
-20
lines changed Expand file tree Collapse file tree 3 files changed +21
-20
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- npm publish
1
+ function Pre-Release {
2
+ $timestamp = Get-Date - Format yyyyMMddhhmmss
3
+ $patchVersion = (npm -- no- git- tag version patch)
4
+ $nextVersion = " ${patchVersion} -next.${timestamp} " .Substring(1 )
5
+ echo $nextVersion
6
+
7
+ npm version -- no- git- tag -f $nextVersion
8
+ npm run publish:next
9
+ }
10
+
11
+ function Release {
12
+ npm publish
13
+ }
14
+
15
+ if ($env: APPVEYOR_REPO_BRANCH -eq " develop" ) {
16
+ Pre- Release
17
+ } else if ($env: APPVEYOR_REPO_TAG -eq " true" ) {
18
+ Release
19
+ }
Original file line number Diff line number Diff line change @@ -38,18 +38,8 @@ test_script:
38
38
- npm cit
39
39
- cd ../..
40
40
41
- on_success :
42
- - IF defined APPVEYOR_REPO_TAG_NAME npm publish
43
-
44
- deploy :
45
- - provider : Script
46
- path : ./.build/release.ps1
47
- on :
48
- APPVEYOR_REPO_TAG : true
49
- - provider : Script
50
- path : ./.build/pre-release.ps1
51
- on :
52
- branch : develop
41
+ deploy_script :
42
+ - cmd : powershell ./.build/release.ps1
53
43
54
44
build : off
55
45
version : " {build}"
You can’t perform that action at this time.
0 commit comments