-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V14: Build and release the type declarations of the Backoffice to npm (…
…#16718) * separate backoffice install into its own template * add new job to build the backoffice npm package * move location of templates * set version, then build, then pack * use nbgv to get just the NpmPackageVersion * calculate version earlier and for both builds * merge two tasks * add Build keyword to the display name * get the node version from the backoffice * update backoffice submodule * bump npm version before restoring cache to ensure the cache key doesn't change * add template to umbraco.sln
- Loading branch information
1 parent
2185be1
commit 2122af7
Showing
4 changed files
with
54 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: Use Node.js | ||
retryCountOnTaskFailure: 3 | ||
inputs: | ||
versionSource: 'fromFile' | ||
versionFilePath: src/Umbraco.Web.UI.Client/.nvmrc | ||
|
||
- bash: | | ||
echo "##[command]Install nbgv" | ||
dotnet tool install --tool-path . nbgv | ||
echo "##[command]Running nbgv get-version" | ||
PACKAGE_VERSION=$(nbgv get-version -v NpmPackageVersion) | ||
echo "##[command]Running npm version" | ||
echo "##[debug]Version: $PACKAGE_VERSION" | ||
cd src/Umbraco.Web.UI.Client | ||
npm version $PACKAGE_VERSION --allow-same-version --no-git-tag-version | ||
displayName: Set NPM Version | ||
- task: Cache@2 | ||
displayName: Cache node_modules | ||
inputs: | ||
key: '"npm_client" | "$(Agent.OS)"| $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/package-lock.json' | ||
restoreKeys: | | ||
"npm_client" | "$(Agent.OS)" | ||
"npm_client" | ||
path: $(npm_config_cache) | ||
|
||
- script: npm ci --no-fund --no-audit --prefer-offline | ||
displayName: Run npm ci (Bellissima) | ||
workingDirectory: src/Umbraco.Web.UI.Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters