Skip to content

chore(deps): update xunit-dotnet monorepo (#57) #45

chore(deps): update xunit-dotnet monorepo (#57)

chore(deps): update xunit-dotnet monorepo (#57) #45

Workflow file for this run

name: .NET
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- uses: actions/setup-node@v4
with:
node-version: "16"
- name: extract next semantic release version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
run: |
set -Eeuo pipefail
semanticReleaseOutput=$(npx \
--quiet \
-p [email protected] \
-p @semantic-release/[email protected] \
-p @semantic-release/[email protected] \
-p @semantic-release/[email protected] \
-p @semantic-release/[email protected] \
-p @semantic-release/[email protected] \
semantic-release --dry-run)
nextVersion=$(echo "$semanticReleaseOutput" \
| sed -n 's/.* The next release version is \(.*\)$/\1/gip')
echo "$semanticReleaseOutput"
if [ -z "$nextVersion" ]
then
echo "nextVersionNumber=0.0.0" >> $GITHUB_ENV
else
echo "The next release version is ${nextVersion}"
echo "nextVersionNumber=$nextVersion" >> $GITHUB_ENV
fi
- name: Cake 🍰 - Build & Test
run: |
dotnet tool restore
dotnet cake --versionNumber=${{ env.nextVersionNumber}}
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
- name: semantic release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
run: >-
npx --quiet
-p [email protected]
-p @semantic-release/[email protected]
-p @semantic-release/[email protected]
-p @semantic-release/[email protected]
-p @semantic-release/[email protected]
-p @semantic-release/[email protected]
semantic-release