Semantic Release #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: Semantic Release | |
on: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
SemanticRelease: | |
name: Semantic Release | |
runs-on: windows-latest | |
permissions: | |
contents: write # to be able to publish a GitHub release | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '3.1.100' | |
- name: Install unity-packer | |
run: dotnet tool install -g unity-packer | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install conventional-changelog-conventionalcommits | |
run: npm i -D conventional-changelog-conventionalcommits | |
- name: Install Plugins | |
run: npm i -D @semantic-release/exec | |
- name: Release | |
run: npx semantic-release | |
--plugins "@semantic-release/commit-analyzer,@semantic-release/release-notes-generator,@semantic-release/github,@semantic-release/exec" | |
--debug true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |