Skip to content

Commit

Permalink
Improve CI build script (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoroz authored Nov 27, 2024
1 parent b0e115f commit 8bf21b6
Show file tree
Hide file tree
Showing 9 changed files with 459 additions and 242 deletions.
677 changes: 440 additions & 237 deletions .ado/publish.yml

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# DO NOT SPECIFY AUTHENTICATION CREDENTIALS IN THIS FILE.
# It should only be used to configure NPM registry sources.

# Use ADO public NPM registry to be complient
# Additional registries should be added as upstreams instead of being added here.

registry=https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/npm/registry/
always-auth=true
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.1.0" /><!-- 4.1.0 is compatible with .NET Standard -->
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.6.133" />
<PackageVersion Include="Nullability.Source" Version="2.1.0" />
<PackageVersion Include="System.Memory" Version="4.5.5" />
Expand Down
3 changes: 2 additions & 1 deletion NuGet.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<!-- We must use ADO feed to be compliant. -->
<add key="react-native-public" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
Expand Down
3 changes: 2 additions & 1 deletion examples/NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<packageSources>
<clear />
<add key="local" value="../out/pkg" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<!-- We must use ADO feed to be compliant. -->
<add key="react-native-public" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
Expand Down
3 changes: 2 additions & 1 deletion examples/hermes-engine/NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<packageSources>
<clear />
<add key="local" value="../../out/pkg" />
<add key="react-native" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
<!-- We must use ADO feed to be compliant. -->
<add key="react-native-public" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
Expand Down
2 changes: 1 addition & 1 deletion examples/winui-fluid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"@fluidframework/tinylicious-client": "^1.3.6",
"fluid-framework": "^1.3.6",
"node-api-dotnet": "file:../../out/pkg/node-api-dotnet",
"tinylicious": "^0.7.3"
"tinylicious": "^5.0.0"
}
}
1 change: 1 addition & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
<!-- All projects need to be rebuilt if the version changes. -->
<Content Include="$(MSBuildThisFileDirectory)version.json" Link="version.json">
<CopyToOutputDirectory>DoNotCopy</CopyToOutputDirectory>
Expand Down
3 changes: 2 additions & 1 deletion test/TestCases/NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<packageSources>
<clear />
<add key="local" value="../../out/pkg" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<!-- We must use ADO feed to be compliant. -->
<add key="react-native-public" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
Expand Down

0 comments on commit 8bf21b6

Please sign in to comment.