-
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.
feat: configure release-it with conventional commits
- Loading branch information
1 parent
bb16231
commit f90c5f9
Showing
11 changed files
with
15,531 additions
and
13,376 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 @@ | ||
{ "extends": ["@commitlint/config-conventional"] } |
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 @@ | ||
module.exports = require('@travellan/release-it'); |
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
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 @@ | ||
module.exports = require('@travellan/release-it'); |
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
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,36 @@ | ||
const version = '${version}'; | ||
const packageName = process.env.npm_package_name; | ||
const scope = packageName.split('/')[1]; | ||
|
||
module.exports = { | ||
plugins: { | ||
'@release-it/conventional-changelog': { | ||
path: '.', | ||
infile: 'CHANGELOG.md', | ||
preset: 'conventionalcommits', | ||
gitRawCommitsOpts: { | ||
path: '.', | ||
}, | ||
}, | ||
}, | ||
git: { | ||
push: true, | ||
tagName: `${packageName}-v${version}`, | ||
pushRepo: '[email protected]:weronikaolejniczak/travellan.git', | ||
commitsPath: '.', | ||
commitMessage: `feat(${scope}): released version v${version} [no ci]`, | ||
requireCommits: true, | ||
requireCommitsFail: false, | ||
}, | ||
npm: { | ||
publish: false, | ||
versionArgs: ['--workspaces false'], | ||
}, | ||
github: { | ||
release: true, | ||
releaseName: `${packageName}-v${version}`, | ||
}, | ||
hooks: { | ||
'before:git:release': ['yarn', 'git add --all'], | ||
}, | ||
}; |
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,6 @@ | ||
{ | ||
"name": "@travellan/release-it", | ||
"version": "1.0.0", | ||
"main": ".release-it.js", | ||
"private": true | ||
} |
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
pre-commit: | ||
parallel: true | ||
commands: | ||
check: | ||
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}" | ||
run: npx biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again | ||
run: npx biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again | ||
lint-commit-msg: | ||
run: npx commitlint --edit |
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
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
Oops, something went wrong.