Skip to content

Commit

Permalink
chore: added release-it
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathas committed Jan 10, 2023
1 parent c1d1768 commit dc9262b
Show file tree
Hide file tree
Showing 10 changed files with 32,197 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This is a comment.
# Each line is a file pattern followed by one or more owners.

# To read more about it, please see
# https://help.github.com/articles/about-codeowners/

# These owners will be the default owners for everything in the repo.
# Unless a later match takes precedence, mentioned users will be requested for review when someone opens a pull request.
* @jonathas
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Overview

## Why is this change required

- [ ] Feature
- [ ] Bug
- [ ] Test coverage
- [ ] Documentation
- [ ] Other

## What changed

What changed in this pull request.

## How to test it

How these changes can be tested
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ vendor
temp
tmp
TODO.md
package-lock.json
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
15 changes: 15 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.github
.husky
docs
test
.editorconfig
.eslintrc.json
.gitattributes
.release-it.js
.travis.yml
.verb.md
appveyor.yml
bower.json
CHANGELOG.md
commitlint.config.js
gulpfile.js
27 changes: 27 additions & 0 deletions .release-it.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
hooks: {
"before:init": ["npm test"],
"after:bump": ["npx auto-changelog -p"],
"after:git:release": ["git checkout develop", "git merge master", "git push origin develop"]
},
git: {
requireBranch: "master",
commit: true,
commitMessage: "chore(release): ${version}",
commitArgs: "",
tag: true,
tagName: "${version}",
tagAnnotation: "${version}",
push: true,
requireCommits: true,
changelog: "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs"
},
github: {
release: true,
releaseName: "${version}",
tokenRef: "GITHUB_TOKEN"
},
npm: {
publish: true
}
};
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
Loading

0 comments on commit dc9262b

Please sign in to comment.