Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .ado/apple-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ jobs:
cat package.json | jq .devDependencies
displayName: Modify example app dependencies
workingDirectory: react-native-test-app/example
- template: templates/verdaccio-init.yml
- bash: |
npx beachball publish --branch origin/$(System.PullRequest.TargetBranch) --no-push --registry http://localhost:4873 --yes --access public
displayName: Publish beachball packages to verdaccio
- bash: |
cat .yarnrc.yml | sed 's_^npmRegistryServer: ".*"$_npmRegistryServer: "http://localhost:4873"_' > .yarnrc.yml.copy
rm .yarnrc.yml
mv .yarnrc.yml.copy .yarnrc.yml
echo -e '\nunsafeHttpWhitelist: ["localhost"]' >> .yarnrc.yml
displayName: Point react-native-test-app registry to verdaccio server
workingDirectory: react-native-test-app
- bash: |
yarn --no-immutable
displayName: Install npm dependencies
Expand Down
26 changes: 2 additions & 24 deletions .ado/templates/react-native-macos-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,36 +31,14 @@ steps:
cd packages/react-native-macos-init
yarn build

- task: CmdLine@2
displayName: Launch test npm server (verdaccio)
inputs:
script: |
npx verdaccio --config ./.ado/verdaccio/config.yaml &

- script: |
npm set registry http://localhost:4873
displayName: Modify default npm config to point to local verdaccio server

- script: |
node .ado/waitForVerdaccio.js
displayName: Wait for verdaccio server to boot

- script: |
node .ado/npmAddUser.js user pass mail@nomail.com http://localhost:4873
displayName: Add npm user to verdaccio
- template: verdaccio-init.yml

- task: CmdLine@2
displayName: Set package version
inputs:
script: node scripts/set-rn-version.js -b dry-run -v 1000.0.0

- script: |
npm publish --registry http://localhost:4873
displayName: Publish react-native-macos to verdaccio

- script: |
npx beachball publish --branch origin/$(System.PullRequest.TargetBranch) --no-push --registry http://localhost:4873 --yes --access public
displayName: Publish react-native-macos-init to verdaccio
- template: verdaccio-publish.yml

- task: CmdLine@2
displayName: Init new project
Expand Down
20 changes: 20 additions & 0 deletions .ado/templates/verdaccio-init.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Initializes a verdaccio server.

steps:
- task: CmdLine@2
displayName: Launch test npm server (verdaccio)
inputs:
script: |
npx verdaccio --config ./.ado/verdaccio/config.yaml &

- script: |
npm set registry http://localhost:4873
displayName: Modify default npm config to point to local verdaccio server

- script: |
node .ado/waitForVerdaccio.js
displayName: Wait for verdaccio server to boot

- script: |
node .ado/npmAddUser.js user pass mail@nomail.com http://localhost:4873
displayName: Add npm user to verdaccio
10 changes: 10 additions & 0 deletions .ado/templates/verdaccio-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Publishes local packages to our verdaccio server.

steps:
- script: |
npm publish --registry http://localhost:4873
displayName: Publish react-native-macos to verdaccio

- script: |
npx beachball publish --branch origin/$(System.PullRequest.TargetBranch) --no-push --registry http://localhost:4873 --yes --access public
displayName: Publish react-native-macos-init to verdaccio
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"@react-native/gradle-plugin": "^0.72.5",
"@react-native/js-polyfills": "^0.72.1",
"@react-native/normalize-colors": "^0.72.0",
"@react-native-mac/virtualized-lists": "^0.0.1",
"@react-native-mac/virtualized-lists": "^0.1.0",
"abort-controller": "^3.0.0",
"anser": "^1.4.9",
"base64-js": "^1.1.2",
Expand Down