docs: Add auto-release badge to README (#391) #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |