-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins: | ||
- - "@semantic-release/commit-analyzer" | ||
- preset: "conventionalcommits" | ||
releaseRules: | ||
# Given Go v2+ conventions we disable major releases on | ||
# breaking changes and leave it up to the developer | ||
# to make major releases | ||
- breaking: true | ||
release: "minor" | ||
- "@semantic-release/release-notes-generator" | ||
- "@semantic-release/github" | ||
|
||
branches: ["master"] | ||
# github plugin is the only one running this step and we're not interested | ||
# in its updates to PR and issues | ||
success: false | ||
# github plugin is the only one running this step and we're not interested | ||
# the issues it creates due to failed releases | ||
fail: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"devDependencies": { | ||
"semantic-release": "^17.3.0", | ||
"@semantic-release/github": "^7.2.0", | ||
"@semantic-release/release-notes-generator": "^9.0.1", | ||
"conventional-changelog-conventionalcommits": "^4.5.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
semantic_release_cwd := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) | ||
semantic_release := $(semantic_release_cwd)/node_modules/.bin/semantic-release | ||
|
||
$(semantic_release): $(semantic_release_cwd)/package.json | ||
$(info [semantic-release] installing packages...) | ||
@cd $(semantic_release_cwd) && npm install --no-save --no-audit --ignore-scripts &> /dev/null | ||
@touch $@ | ||
|
||
.PHONY: semantic-release | ||
semantic-release: $(semantic_release_cwd)/.releaserc.yaml $(semantic_release) | ||
$(info [$@] creating release...) | ||
@cd $(semantic_release_cwd) && $(semantic_release) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters