-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DotNet minimum version dependency set to version 8 (#155)
- Loading branch information
Showing
13 changed files
with
28 additions
and
33 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
runs-on: windows-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].4 | ||
|
||
- name: "Get changed files" | ||
id: getChangedFiles | ||
|
@@ -34,17 +34,12 @@ jobs: | |
} | ||
Write-Host "Pass ✅" | ||
- name: Install SemVer PS modules | ||
shell: pwsh | ||
run: | | ||
Set-PSRepository PSGallery -InstallationPolicy Trusted | ||
Install-Module -Name PoshSemanticVersion | ||
- name: Get current version from package.json | ||
id: getpackageversion | ||
shell: pwsh | ||
run: | | ||
$version = ((Get-Content .\package.json | ConvertFrom-Json).version).ToString() | ||
$package = Get-Content .\package.json | ConvertFrom-Json | ||
$version = $package.version | ||
Write-Host 'Current version from package.json: ' $version | ||
"VERSION=$version" >> $env:GITHUB_OUTPUT | ||
|
@@ -66,16 +61,13 @@ jobs: | |
id: compare | ||
shell: pwsh | ||
run: | | ||
Import-Module PoshSemanticVersion | ||
$com = Compare-SemanticVersion ${{ steps.getpackageversion.outputs.VERSION }} ${{ steps.getPublishedVersion.outputs.PUB_VERSION }} | ||
if ($com.Precedence -eq '>') { | ||
$localVersion = [System.Version]('${{ steps.getpackageversion.outputs.VERSION }}') | ||
$storeVersion = [System.Version]('${{ steps.getPublishedVersion.outputs.PUB_VERSION }}') | ||
if ($localVersion -gt $storeVersion) { | ||
Write-Host "Version in package.json is higher than latest published version" | ||
Write-Host "Pass" | ||
} | ||
elseif ($com.Precedence -eq '<') { | ||
throw [System.Exception]("Version can not be lesser than latest published version. Update package version") | ||
} | ||
else { | ||
throw [System.Exception]("Version can not be same as latest published version. Update package version") | ||
throw [System.Exception]("Version can not be same as latest published version ❌! Update package version.") | ||
} |
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
{ | ||
"runtimeOptions": { | ||
"tfm": "net6.0", | ||
"tfm": "net8.0", | ||
"framework": { | ||
"name": "Microsoft.NETCore.App", | ||
"version": "6.0.0" | ||
"version": "8.0.0" | ||
}, | ||
"configProperties": { | ||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false | ||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false, | ||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
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