-
-
Notifications
You must be signed in to change notification settings - Fork 742
44 lines (35 loc) · 1.13 KB
/
Semantic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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/exec,@semantic-release/github"
--debug true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}