File tree Expand file tree Collapse file tree 2 files changed +37
-52
lines changed Expand file tree Collapse file tree 2 files changed +37
-52
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,8 +14,43 @@ trigger:
14
14
pr : none
15
15
16
16
jobs :
17
- - job : RNGithubPublish
18
- displayName : React-Native GitHub Publish
17
+ - job : RNGithubNpmJSPublish
18
+ displayName : React-Native GitHub Publish to npmjs.org
19
+ pool :
20
+ vmImage : vs2017-win2016
21
+ timeoutInMinutes : 90 # how long to run the job before automatically cancelling
22
+ cancelTimeoutInMinutes : 5 # how much time to give 'run always even if cancelled tasks' before killing them
23
+ steps :
24
+ - checkout : self # self represents the repo where the initial Pipelines YAML file was found
25
+ clean : true # whether to fetch clean each time
26
+ # fetchDepth: 2 # the depth of commits to ask Git to fetch
27
+ lfs : false # whether to download Git-LFS files
28
+ submodules : recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules
29
+ persistCredentials : true # set to 'true' to leave the OAuth token in the Git config after the initial fetch
30
+
31
+ - task : CmdLine@2
32
+ displayName : npm install
33
+ inputs :
34
+ script : npm install
35
+
36
+ - task : CmdLine@2
37
+ displayName : Bump package version
38
+ inputs :
39
+ script : node .ado/bumpFileVersions.js
40
+
41
+ - task : CmdLine@2
42
+ displayName : " Prepare package.json for npm publishing as react-native-macos"
43
+ inputs :
44
+ script : node .ado/renamePackageToMac.js
45
+
46
+ - task : Npm@1
47
+ displayName : " Publish react-native-macos to npmjs.org"
48
+ inputs :
49
+ command : ' publish'
50
+ publishEndpoint : ' npmjs'
51
+
52
+ - job : RNGithubOfficePublish
53
+ displayName : React-Native GitHub Publish to Office
19
54
pool :
20
55
vmImage : vs2017-win2016
21
56
timeoutInMinutes : 90 # how long to run the job before automatically cancelling
You can’t perform that action at this time.
0 commit comments