From 531693be217680e175a6d443991a1b9bab2deb1b Mon Sep 17 00:00:00 2001 From: Kieron Lanning Date: Fri, 14 Jun 2024 13:29:58 +0100 Subject: [PATCH] feat: updating to new release management system --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 45d5689..fbcf533 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} @@ -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