-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1.14 KB
/
main.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
name: Semantic versioning
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ['main', 'develop']
pull_request:
branches: ['main', 'develop']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
versioning:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Need these two configurations because this job runs on protected branches
fetch-depth: 0
persist-credentials: false
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 18
branches: |
[
"main",
{
"name": "develop",
"prerelease": true
}
]
extra_plugins: |
"@semantic-release/[email protected]"
"@semantic-release/[email protected]"
"@semantic-release/[email protected]"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}