Publish Win32 FluentTester NuGet Package to Internal Office Feed (#1376)
* Yarn * Merge * Fixing repo * Update package * Merge * Removing change file * Added win32 nuget file - copied from macos, not working * Attempting to publish Win32 FluentTester bundle to the react-native office feed for internal use so I can then pull the bundle into Devmain * Change files * Change name of Win32 Nuget Publish * Adding publish to PR to test it * Building repo * Trying different NuGet command * Only testing my NuGet push * Assing assets to NuGet package * Doing a full build in the CI * Changing version number to build number * Attempting to change the Version number to a cleaner number * Changing publish path * Trying new version number * Fixing incorrect path for NuGet push * Trying new approach * Testing pipeline with directory * Changing packagesToPublish path * Push * Revert * Removing previous testing-only code * Remove extra whitespace * Adding <repository metadata to the .nuspec and ommitId property to the command-line to pack the NuGet
This commit is contained in:
Родитель
970aaeee07
Коммит
ce9cae587b
|
@ -68,3 +68,13 @@ jobs:
|
|||
|
||||
steps:
|
||||
- template: templates/apple-nuget-publish.yml
|
||||
|
||||
- job: Win32NuGetPublish
|
||||
displayName: Win32 FluentTester NuGet Publish
|
||||
pool:
|
||||
vmImage: 'windows-2019'
|
||||
timeoutInMinutes: 90 # how long to run the job before automatically cancelling
|
||||
cancelTimeoutInMinutes: 5 # how much time to give 'run always even if cancelled tasks' before killing them
|
||||
|
||||
steps:
|
||||
- template: templates/win32-nuget-publish.yml
|
|
@ -0,0 +1,31 @@
|
|||
steps:
|
||||
- checkout: self
|
||||
persistCredentials: true
|
||||
|
||||
- template: setup-repo-min-build.yml
|
||||
|
||||
- script: |
|
||||
yarn build
|
||||
displayName: 'Building the repo'
|
||||
|
||||
- script: |
|
||||
yarn bundle
|
||||
workingDirectory: apps/win32
|
||||
displayName: 'Bundling win32'
|
||||
|
||||
# Pack the NuGet package
|
||||
- task: CmdLine@1
|
||||
displayName: 'Create NuGet package for FluentTester Win32 bundle.'
|
||||
inputs:
|
||||
filename: nuget
|
||||
arguments: 'pack Microsoft.FluentUI.FluentTesterWin32.nuspec -OutputDirectory $(Build.ArtifactStagingDirectory) -OutputFileNamesWithoutVersion -Verbosity detailed -Version $(Build.BuildNumber) -properties CommitId=$(Build.SourceVersion)'
|
||||
workingFolder: 'apps/win32/nuget'
|
||||
|
||||
# Push the NuGet package
|
||||
- task: NuGetCommand@2
|
||||
displayName: 'NuGet push'
|
||||
inputs:
|
||||
command: push
|
||||
packagesToPush: '$(Build.ArtifactStagingDirectory)/Microsoft.FluentUI.FluentTesterWin32.nupkg'
|
||||
nuGetFeedType: external
|
||||
publishFeedCredentials: react-native
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>Microsoft.FluentUI.FluentTesterWin32</id>
|
||||
<version>1.0.0</version>
|
||||
<title>FluentUI-React-Native Win32 Bundle</title>
|
||||
<authors>Microsoft Office CXE</authors>
|
||||
<projectUrl>https://github.com/microsoft/fluentui-react-native.git</projectUrl>
|
||||
<description>This package contains the React Native JS bundle of FluentUI-React-Native's Win32 Test App.</description>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<repository type="git"
|
||||
url="https://github.com/microsoft/fluentui-react-native.git"
|
||||
commit="$CommitId$" />
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="..\dist\index.win32.bundle" target="win32" />
|
||||
<file src="..\dist\assets\**" target="win32\assets" />
|
||||
</files>
|
||||
</package>
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "none",
|
||||
"comment": "Attempting to publish Win32 FluentTester bundle to the react-native office feed for internal use so I can then pull the bundle into Devmain",
|
||||
"packageName": "@fluentui-react-native/tester-win32",
|
||||
"email": "safreibe@microsoft.com",
|
||||
"dependentChangeType": "none"
|
||||
}
|
Загрузка…
Ссылка в новой задаче