From c1557fcb10a9fd11799f1e98438cd1928346cdce Mon Sep 17 00:00:00 2001 From: Jose Corella Date: Wed, 22 Sep 2021 15:36:53 -0700 Subject: [PATCH 1/4] chore: Adding semantic release config file --- .releaserc | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .releaserc diff --git a/.releaserc b/.releaserc new file mode 100644 index 000000000..ecd7971ef --- /dev/null +++ b/.releaserc @@ -0,0 +1,50 @@ +{ + "branches": ["main"], + "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": "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": "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", +} From 5740cbbc9190182b351299e6de89f47b671b1540 Mon Sep 17 00:00:00 2001 From: Jose Corella Date: Wed, 22 Sep 2021 15:53:33 -0700 Subject: [PATCH 2/4] chore: fixing typo, default branch should be master not main --- .releaserc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.releaserc b/.releaserc index ecd7971ef..3f4980cc1 100644 --- a/.releaserc +++ b/.releaserc @@ -1,5 +1,5 @@ { - "branches": ["main"], + "branches": ["master"], "plugins": [ ["@semantic-release/commit-analyzer", { "preset": "conventionalcommits", From f1408a41fd856bba6fdd68c07458341fd5c054a8 Mon Sep 17 00:00:00 2001 From: Jose Corella Date: Wed, 22 Sep 2021 16:16:00 -0700 Subject: [PATCH 3/4] chore: adding revert to the config file --- .releaserc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.releaserc b/.releaserc index 3f4980cc1..21b024b2b 100644 --- a/.releaserc +++ b/.releaserc @@ -12,6 +12,7 @@ {"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}, @@ -30,6 +31,7 @@ {"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}, From 809a3512989156b09a6bd209c57a40321189aec5 Mon Sep 17 00:00:00 2001 From: Jose Corella Date: Thu, 23 Sep 2021 15:38:45 -0700 Subject: [PATCH 4/4] chore: updating .gitignore --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) 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/