Skip to content

docs: Add auto-release badge to README (#391) #13

docs: Add auto-release badge to README (#391)

docs: Add auto-release badge to README (#391) #13

name: release-automated
on:
push:
branches: [ master, main, release, alpha, beta ]
jobs:
release:
runs-on: ubuntu-latest
outputs:
current_tag: ${{ steps.tag.outputs.current_tag }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x'
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install Node dependencies
run: npm ci
- name: Build and publish release
run: npx semantic-release
env:
GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}