mirror of
https://github.com/firstsun-dev/git-files-sync.git
synced 2026-07-22 06:54:27 +00:00
84 lines
2.9 KiB
JSON
84 lines
2.9 KiB
JSON
{
|
|
"branches": ["main", "master", "feat/use-shared-workflow"],
|
|
"tagFormat": "${version}",
|
|
"plugins": [
|
|
[
|
|
"@semantic-release/commit-analyzer",
|
|
{
|
|
"preset": "conventionalcommits",
|
|
"releaseRules": [
|
|
{ "type": "feat", "release": "minor" },
|
|
{ "type": "fix", "release": "patch" },
|
|
{ "type": "perf", "release": "patch" },
|
|
{ "type": "revert", "release": "patch" },
|
|
{ "type": "docs", "release": false },
|
|
{ "type": "style", "release": false },
|
|
{ "type": "refactor", "release": "patch" },
|
|
{ "type": "test", "release": false },
|
|
{ "type": "build", "release": false },
|
|
{ "type": "ci", "release": false },
|
|
{ "type": "chore", "scope": "deps", "release": "patch" },
|
|
{ "type": "chore", "scope": "deps-dev", "release": "patch" },
|
|
{ "type": "chore", "release": false },
|
|
{ "breaking": true, "release": "major" }
|
|
]
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/release-notes-generator",
|
|
{
|
|
"preset": "conventionalcommits",
|
|
"presetConfig": {
|
|
"types": [
|
|
{ "type": "feat", "section": "Features" },
|
|
{ "type": "fix", "section": "Bug Fixes" },
|
|
{ "type": "perf", "section": "Performance Improvements" },
|
|
{ "type": "revert", "section": "Reverts" },
|
|
{ "type": "docs", "section": "Documentation", "hidden": false },
|
|
{ "type": "style", "section": "Styles", "hidden": true },
|
|
{ "type": "refactor", "section": "Code Refactoring" },
|
|
{ "type": "test", "section": "Tests", "hidden": true },
|
|
{ "type": "build", "section": "Build System", "hidden": true },
|
|
{ "type": "ci", "section": "Continuous Integration", "hidden": true },
|
|
{ "type": "chore", "section": "Chores", "hidden": true }
|
|
]
|
|
}
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/changelog",
|
|
{
|
|
"changelogFile": "CHANGELOG.md"
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/npm",
|
|
{
|
|
"npmPublish": false
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/exec",
|
|
{
|
|
"prepareCmd": "node -e \"const fs=require('fs'); const m=JSON.parse(fs.readFileSync('manifest.json')); m.version='${nextRelease.version}'; fs.writeFileSync('manifest.json', JSON.stringify(m,null,'\\t')); const v=JSON.parse(fs.readFileSync('versions.json')); v['${nextRelease.version}']=m.minAppVersion; fs.writeFileSync('versions.json', JSON.stringify(v,null,'\\t'));\""
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/git",
|
|
{
|
|
"assets": ["manifest.json", "versions.json", "CHANGELOG.md", "package.json"],
|
|
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/github",
|
|
{
|
|
"assets": [
|
|
{ "path": "main.js" },
|
|
{ "path": "manifest.json" },
|
|
{ "path": "styles.css" }
|
|
]
|
|
}
|
|
]
|
|
]
|
|
}
|