diff --git a/.gitignore b/.gitignore index 875661f53..8e92eb021 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,7 @@ target/ /.history /.DS_Store /specification_compliance_report.html + +## semantic-release +package-lock.json +node_modules/ diff --git a/.releaserc b/.releaserc new file mode 100644 index 000000000..21b024b2b --- /dev/null +++ b/.releaserc @@ -0,0 +1,52 @@ +{ + "branches": ["master"], + "plugins": [ + ["@semantic-release/commit-analyzer", { + "preset": "conventionalcommits", + "parserOpts": { + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] + }, + "presetConfig": { + "types": [ + {"type": "feat", "section": "Features"}, + {"type": "fix", "section": "Bug Fixes"}, + {"type": "chore", "section": "Maintenance"}, + {"type": "docs", "section": "Maintenance"}, + {"type": "revert", "section": "Bug Fixes"}, + {"type": "style", "hidden": true}, + {"type": "refactor", "hidden": true}, + {"type": "perf", "hidden": true}, + {"type": "test", "hidden": true} + ] + } + }], + ["@semantic-release/release-notes-generator", { + "preset": "conventionalcommits", + "parserOpts": { + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] + }, + "presetConfig": { + "types": [ + {"type": "feat", "section": "Features"}, + {"type": "fix", "section": "Bug Fixes"}, + {"type": "chore", "section": "Maintenance"}, + {"type": "docs", "section": "Maintenance"}, + {"type": "revert", "section": "Bug Fixes"}, + {"type": "style", "hidden": true}, + {"type": "refactor", "hidden": true}, + {"type": "perf", "hidden": true}, + {"type": "test", "hidden": true} + ] + } + }], + ["@semantic-release/changelog", { + "changelogFile": "./CHANGELOG.md" + }], + ["@semantic-release/git", { + "assets": ["./CHANGELOG.md"], + "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + }], + "@semantic-release/github" + ], + "repositoryUrl": "https://github.com/josecorella/test-semantic-release-pr", +}