Skip to content

Commit

Permalink
feat: updating to new release management system
Browse files Browse the repository at this point in the history
  • Loading branch information
kieronlanning committed Jun 14, 2024
1 parent 209de42 commit 531693b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Get release version
id: get_version
run: |
echo "::set-output name=RELEASE_VERSION::$(npx --no-install semantic-release --branches testing-semantic-release --dry-run | grep -oP '(?:The next release version is )([0-9]+\.[0-9]+\.[0-9])' | grep -oP '[0-9]+\.[0-9]+\.[0-9]+')"
echo "RELEASE_VERSION=$(npx --no-install semantic-release --branches testing-semantic-release --dry-run | grep -oP '(?:The next release version is )([0-9]+\.[0-9]+\.[0-9])' | grep -oP '[0-9]+\.[0-9]+\.[0-9]+')" >> $GITHUB_ENV"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -77,10 +77,10 @@ jobs:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Display release version
run: echo "Release version is ${{ steps.get_version.outputs.RELEASE_VERSION }}"
run: echo "Release version is $RELEASE_VERSION"

- name: Pack NuGet packages
run: dotnet pack ${{ env.SolutionPath }} --configuration ${{ env.BuildConfigutation }} --output ${{ env.NuGetDirectory }} --property:Version=${{ steps.get_version.outputs.RELEASE_VERSION }} --include-symbols
run: dotnet pack ${{ env.SolutionPath }} --configuration ${{ env.BuildConfigutation }} --output ${{ env.NuGetDirectory }} --property:Version=$RELEASE_VERSION --include-symbols
working-directory: src

- name: Upload NuGet packages
Expand Down

0 comments on commit 531693b

Please sign in to comment.