mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-12 05:49:09 +00:00
New: Adding semantic versioning
This commit is contained in:
@@ -13,6 +13,20 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Semantic Release
|
||||||
|
uses: cycjimmy/semantic-release-action@v2
|
||||||
|
id: semantic
|
||||||
|
with:
|
||||||
|
semantic_version: 16
|
||||||
|
extra_plugins: |
|
||||||
|
@semantic-release/changelog
|
||||||
|
@semantic-release/git
|
||||||
|
conventional-changelog-eslint
|
||||||
|
branches: |
|
||||||
|
['main']
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update Pip
|
- name: Update Pip
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
|
|||||||
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
"branch": "dev",
|
||||||
|
"plugins": [
|
||||||
|
[
|
||||||
|
"@semantic-release/commit-analyzer",
|
||||||
|
{
|
||||||
|
"preset": "eslint",
|
||||||
|
"releaseRules": [
|
||||||
|
{ "tag": "Breaking", "release": "major" },
|
||||||
|
{ "tag": "Build", "release": "minor" },
|
||||||
|
{ "tag": "Chore", "release": "minor" },
|
||||||
|
{ "tag": "Fix", "release": "patch" },
|
||||||
|
{ "tag": "New", "release": "minor" },
|
||||||
|
{ "tag": "Update", "release": "minor" },
|
||||||
|
{ "tag": "Upgrade", "release": "minor" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/release-notes-generator",
|
||||||
|
{
|
||||||
|
"preset": "eslint",
|
||||||
|
"releaseRules": [
|
||||||
|
{ "tag": "Breaking", "release": "major" },
|
||||||
|
{ "tag": "Build", "release": "minor" },
|
||||||
|
{ "tag": "Chore", "release": "minor" },
|
||||||
|
{ "tag": "Fix", "release": "patch" },
|
||||||
|
{ "tag": "New", "release": "minor" },
|
||||||
|
{ "tag": "Update", "release": "minor" },
|
||||||
|
{ "tag": "Upgrade", "release": "minor" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/changelog",
|
||||||
|
{
|
||||||
|
"changelogFile": "CHANGELOG.md"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@semantic-release/github",
|
||||||
|
[
|
||||||
|
"@semantic-release/git", {
|
||||||
|
"assets": ["package.json", "CHANGELOG.md"],
|
||||||
|
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user