Skip to content

Commit

Permalink
Try fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudleclerc committed Dec 18, 2024
1 parent c1f2fd5 commit ae0d5da
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,32 +42,32 @@ jobs:
run: cd ./src/AzureMapsControl.Components && npm i --force
- name: Lint
run: cd ./src/AzureMapsControl.Components && npx eslint -c eslint.config.mjs
- name: Build Typescript
run: cd ./src/AzureMapsControl.Components && npm run build
# - name: Build Typescript
# run: cd ./src/AzureMapsControl.Components && npm run build
- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/[email protected]
- name: Tag Repo Prerelease
if: ${{ steps.gitversion.outputs.branchName != 'master' && steps.gitversion.outputs.branchName != 'main' }}
uses: richardsimko/update-tag@v1
with:
tag_name: ${{ steps.gitversion.outputs.fullSemVer }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Tag Repo
if: ${{ steps.gitversion.outputs.branchName == 'master' || steps.gitversion.outputs.branchName == 'main' }}
uses: richardsimko/update-tag@v1
with:
tag_name: ${{ steps.gitversion.outputs.majorMinorPatch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Tag Repo Prerelease
# if: ${{ steps.gitversion.outputs.branchName != 'master' && steps.gitversion.outputs.branchName != 'main' }}
# uses: richardsimko/update-tag@v1
# with:
# tag_name: ${{ steps.gitversion.outputs.fullSemVer }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Tag Repo
# if: ${{ steps.gitversion.outputs.branchName == 'master' || steps.gitversion.outputs.branchName == 'main' }}
# uses: richardsimko/update-tag@v1
# with:
# tag_name: ${{ steps.gitversion.outputs.majorMinorPatch }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Pack PreRelease
if: ${{ steps.gitversion.outputs.branchName != 'master' && steps.gitversion.outputs.branchName != 'main' }}
run: dotnet pack ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj -p:Version='${{ steps.gitversion.outputs.fullSemVer }}"' -c Release --no-build
- name: Pack
if: ${{ steps.gitversion.outputs.branchName == 'master' || steps.gitversion.outputs.branchName == 'main' }}
run: dotnet pack ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj -p:Version='${{ steps.gitversion.outputs.majorMinorPatch }}"' -c Release --no-build
- name: Publish
env :
NUGETAPIKEY: ${{secrets.NUGETAPIKEY}}
run: dotnet nuget push "**/AzureMapsControl.Components*.nupkg" -s https://api.nuget.org/v3/index.json -k $NUGETAPIKEY --skip-duplicate
# - name: Publish
# env :
# NUGETAPIKEY: ${{secrets.NUGETAPIKEY}}
# run: dotnet nuget push "**/AzureMapsControl.Components*.nupkg" -s https://api.nuget.org/v3/index.json -k $NUGETAPIKEY --skip-duplicate
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<RazorLangVersion>3.0</RazorLangVersion>
<Authors>Arnaud Leclerc</Authors>
<Company />
<RepositoryUrl>https://github.com/arnaudleclerc/AzureMapsControl.Components</RepositoryUrl>
Expand Down

0 comments on commit ae0d5da

Please sign in to comment.