Mirror/.github/workflows/Semantic.yml
2024-05-05 09:23:22 -04:00

45 lines
1.2 KiB
YAML

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 @semantic-release/git
- name: Release
run: npx semantic-release
--plugins "@semantic-release/commit-analyzer,@semantic-release/release-notes-generator,@semantic-release/github,@semantic-release/exec,@semantic-release/git"
--debug true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}