Skip to content

chore(deps): update dependency coverlet.collector to v6.0.2 (#76) #61

chore(deps): update dependency coverlet.collector to v6.0.2 (#76)

chore(deps): update dependency coverlet.collector to v6.0.2 (#76) #61

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@v4
with:
dotnet-version: 8.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