Skip to content

Commit

Permalink
stamp the version into the umbraco-package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Mar 7, 2024
1 parent 1bdc7db commit 97c9965
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions dist/build-package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ Write-Host "Config :" $env
Write-Host "Folder :" $outFolder
"----------------------------------"; ""

"Stamp version in umbraco-package.json"
$umbracoPackagePath = '../uSync.BackOffice.Management.Client/assets/public/umbraco-package.json'
$packageJson = Get-Content $umbracoPackagePath -Raw | ConvertFrom-Json
$packageJson.Version = $fullVersion
$packageJson | ConvertTo-Json -Depth 32 | Set-Content $umbracoPackagePath

$sln_name = "..\uSync.sln";

""; "##### Restoring project"; "--------------------------------"; ""
Expand Down
4 changes: 2 additions & 2 deletions uSync.Backoffice.Management.Client/assets/.npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#registry=https://pkgs.dev.azure.com/jumoo/Public/_packaging/nightly/npm/registry/
#always-auth=false
registry=https://pkgs.dev.azure.com/jumoo/Public/_packaging/nightly/npm/registry/
always-auth=false
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "../umbraco-package-schema.json",
"name": "uSync",
"id": "usync",
"version": "14.0.0-early001",
"version": "14.0.0-build.20240307.10",
"allowTelemetry": true,
"extensions": [
{
Expand All @@ -12,4 +12,4 @@
"js": "/App_Plugins/uSync/usync-assets.js"
}
]
}
}

0 comments on commit 97c9965

Please sign in to comment.