13
13
14
14
- template : /.ado/templates/apple-tools-setup.yml@self
15
15
16
+ - task : CmdLine@2
17
+ displayName : yarn install react-native-macos-init
18
+ inputs :
19
+ script : |
20
+ set -eox pipefail
21
+ cd packages/react-native-macos-init
22
+ yarn install
23
+
24
+ - task : CmdLine@2
25
+ displayName : Build react-native-macos-init
26
+ inputs :
27
+ script : |
28
+ set -eox pipefail
29
+ cd packages/react-native-macos-init
30
+ yarn build
31
+
16
32
- template : /.ado/templates/verdaccio-init.yml@self
17
33
18
34
- template : /.ado/templates/verdaccio-publish.yml@self
@@ -21,42 +37,56 @@ jobs:
21
37
- task : CmdLine@2
22
38
displayName : yarn install (local react-native-macos)
23
39
inputs :
24
- script : yarn install --immutable
40
+ script : |
41
+ set -eox pipefail
42
+ yarn install --immutable
25
43
26
44
- task : CmdLine@2
27
45
displayName : yarn install (local react-native-macos-init)
28
46
inputs :
29
47
script : |
48
+ set -eox pipefail
30
49
cd packages/react-native-macos-init
31
50
yarn install --immutable
32
51
33
52
- task : CmdLine@2
34
53
displayName : yarn build (local react-native-macos-init)
35
54
inputs :
36
55
script : |
56
+ set -eox pipefail
37
57
cd packages/react-native-macos-init
38
58
yarn build
39
59
40
60
- task : CmdLine@2
41
61
displayName : Init new project
42
62
inputs :
43
- script :
npx --yes [email protected] init testcli --template [email protected] --skip-install
63
+ script : |
64
+ set -eox pipefail
65
+ npx --yes @react-native-community/cli init testcli --version 0.75 --skip-install
44
66
workingDirectory : $(Agent.BuildDirectory)
45
67
46
68
- task : CmdLine@2
47
- displayName : yarn install (local react-native-macos-init )
69
+ displayName : yarn install (testcli )
48
70
inputs :
49
- script : yarn install --immutable
71
+ script : |
72
+ set -eox pipefail
73
+ yarn install --mode=update-lockfile
74
+ # `update-lockfile` skips the linking step, so we need to run `yarn install` again
75
+ yarn install
50
76
workingDirectory : $(Agent.BuildDirectory)/testcli
51
77
52
78
- task : CmdLine@2
53
79
displayName : Apply macos template
54
80
inputs :
55
- script : npx react-native-macos-init --version latest --overwrite --prerelease
81
+ script : |
82
+ set -eox pipefail
83
+ npx react-native-macos-init --version latest --overwrite --prerelease
56
84
workingDirectory : $(Agent.BuildDirectory)/testcli
57
85
58
86
- task : CmdLine@2
59
87
displayName : Run macos [test]
60
88
inputs :
61
- script : npx react-native run-macos
89
+ script : |
90
+ set -eox pipefail
91
+ npx react-native run-macos
62
92
workingDirectory : $(Agent.BuildDirectory)/testcli
0 commit comments