Skip to content

Commit 8bf21b6

Browse files
authored
Improve CI build script (#402)
1 parent b0e115f commit 8bf21b6

File tree

9 files changed

+459
-242
lines changed

9 files changed

+459
-242
lines changed

.ado/publish.yml

+440-237
Large diffs are not rendered by default.

.npmrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# DO NOT SPECIFY AUTHENTICATION CREDENTIALS IN THIS FILE.
2+
# It should only be used to configure NPM registry sources.
3+
4+
# Use ADO public NPM registry to be complient
5+
# Additional registries should be added as upstreams instead of being added here.
6+
7+
registry=https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/npm/registry/
8+
always-auth=true

Directory.Packages.props

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.1.0" /><!-- 4.1.0 is compatible with .NET Standard -->
99
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" />
1010
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
11+
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
1112
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.6.133" />
1213
<PackageVersion Include="Nullability.Source" Version="2.1.0" />
1314
<PackageVersion Include="System.Memory" Version="4.5.5" />

NuGet.config

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<configuration>
22
<packageSources>
33
<clear />
4-
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
4+
<!-- We must use ADO feed to be compliant. -->
5+
<add key="react-native-public" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
56
</packageSources>
67
<disabledPackageSources>
78
<clear />

examples/NuGet.config

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<packageSources>
44
<clear />
55
<add key="local" value="../out/pkg" />
6-
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
6+
<!-- We must use ADO feed to be compliant. -->
7+
<add key="react-native-public" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
78
</packageSources>
89
<disabledPackageSources>
910
<clear />

examples/hermes-engine/NuGet.config

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<packageSources>
44
<clear />
55
<add key="local" value="../../out/pkg" />
6-
<add key="react-native" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
6+
<!-- We must use ADO feed to be compliant. -->
7+
<add key="react-native-public" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
78
</packageSources>
89
<disabledPackageSources>
910
<clear />

examples/winui-fluid/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"@fluidframework/tinylicious-client": "^1.3.6",
55
"fluid-framework": "^1.3.6",
66
"node-api-dotnet": "file:../../out/pkg/node-api-dotnet",
7-
"tinylicious": "^0.7.3"
7+
"tinylicious": "^5.0.0"
88
}
99
}

src/Directory.Build.props

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<ItemGroup>
55
<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="all" />
6+
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
67
<!-- All projects need to be rebuilt if the version changes. -->
78
<Content Include="$(MSBuildThisFileDirectory)version.json" Link="version.json">
89
<CopyToOutputDirectory>DoNotCopy</CopyToOutputDirectory>

test/TestCases/NuGet.config

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<packageSources>
44
<clear />
55
<add key="local" value="../../out/pkg" />
6-
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
6+
<!-- We must use ADO feed to be compliant. -->
7+
<add key="react-native-public" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
78
</packageSources>
89
<disabledPackageSources>
910
<clear />

0 commit comments

Comments
 (0)