Skip to content

Commit d7aa4df

Browse files
authored
Re-enable npmjs.org npm publishing (#293)
* Restore npmjs publishing. * Rename display names of pipelines
1 parent a204977 commit d7aa4df

File tree

2 files changed

+37
-52
lines changed

2 files changed

+37
-52
lines changed

.ado/publish-npmjs.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.ado/publish.yml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,43 @@ trigger:
1414
pr: none
1515

1616
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
1954
pool:
2055
vmImage: vs2017-win2016
2156
timeoutInMinutes: 90 # how long to run the job before automatically cancelling

0 commit comments

Comments
 (0)