2023-01-09 11:14:04 +00:00
|
|
|
name: Semantic Release
|
|
|
|
|
|
|
|
on:
|
2023-01-20 07:31:13 +00:00
|
|
|
workflow_dispatch:
|
2023-01-09 11:14:04 +00:00
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
SemanticRelease:
|
|
|
|
name: Semantic Release
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2024-01-29 06:56:47 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-01-09 11:14:04 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2024-05-05 09:32:20 +00:00
|
|
|
- name: Setup .NET
|
2024-04-13 13:37:06 +00:00
|
|
|
uses: actions/setup-dotnet@v4
|
2023-01-09 11:14:04 +00:00
|
|
|
with:
|
|
|
|
dotnet-version: '3.1.100'
|
|
|
|
|
|
|
|
- name: Install unity-packer
|
|
|
|
run: dotnet tool install -g unity-packer
|
|
|
|
|
2024-05-05 09:32:20 +00:00
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: '20'
|
|
|
|
|
2024-04-14 15:41:25 +00:00
|
|
|
- name: Install conventional-changelog-conventionalcommits
|
|
|
|
run: npm i -D conventional-changelog-conventionalcommits
|
2024-05-05 09:32:20 +00:00
|
|
|
|
|
|
|
- name: Install Plugins
|
|
|
|
run: npm i -D @semantic-release/exec @semantic-release/changelog @semantic-release/git
|
2024-04-14 15:41:25 +00:00
|
|
|
|
2023-01-09 11:14:04 +00:00
|
|
|
- name: Release
|
2024-05-05 09:32:20 +00:00
|
|
|
run: npx semantic-release
|
|
|
|
--plugins "@semantic-release/commit-analyzer,@semantic-release/release-notes-generator,@semantic-release/github,@semantic-release/exec,@semantic-release/changelog,@semantic-release/git"
|
2023-01-09 11:14:04 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|