Skip to content

Commit

Permalink
Configure release-it
Browse files Browse the repository at this point in the history
  • Loading branch information
scinos committed Apr 23, 2022
1 parent f636cbe commit 66b418f
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .release-it.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
git: {
push: true,
},
npm: {
publish: true,
},
github: {
release: true,
web: true,
},
plugins: {
'@release-it/keep-a-changelog': {
filename: 'CHANGELOG.md',
addUnreleased: true,
keepUnreleased: false,
addVersionUrl: true,
},
},
};
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project
adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## master

## 5.0.0 - 2022-04-20
## [Unreleased]

### Breaking

Expand All @@ -20,7 +18,7 @@ adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
- Configured which files goes into npm package
- Updated dependencies

## 4.0.0 - 2022-03-21
## [4.0.0] - 2022-03-21

### Breaking

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@babel/core": "^7.17.9",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@release-it/keep-a-changelog": "^2.5.0",
"@tsconfig/node12": "^1.0.9",
"@types/jest": "^27.4.1",
"@types/semver": "^7.3.9",
Expand Down
22 changes: 21 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1767,6 +1767,18 @@ __metadata:
languageName: node
linkType: hard

"@release-it/keep-a-changelog@npm:^2.5.0":
version: 2.5.0
resolution: "@release-it/keep-a-changelog@npm:2.5.0"
dependencies:
detect-newline: ^3.1.0
string-template: ^1.0.0
peerDependencies:
release-it: ^14.13.1
checksum: 6c9b023de9fb3279a01d546c8939d2b7bc7657de4949a5b13473b21b778f6298aaa666ade2b6fd1b2767b5989e365025a979cde97e2c2a77542fef518f9e36dc
languageName: node
linkType: hard

"@sindresorhus/is@npm:^0.14.0":
version: 0.14.0
resolution: "@sindresorhus/is@npm:0.14.0"
Expand Down Expand Up @@ -3138,7 +3150,7 @@ __metadata:
languageName: node
linkType: hard

"detect-newline@npm:^3.0.0":
"detect-newline@npm:^3.0.0, detect-newline@npm:^3.1.0":
version: 3.1.0
resolution: "detect-newline@npm:3.1.0"
checksum: ae6cd429c41ad01b164c59ea36f264a2c479598e61cba7c99da24175a7ab80ddf066420f2bec9a1c57a6bead411b4655ff15ad7d281c000a89791f48cbe939e7
Expand Down Expand Up @@ -8000,6 +8012,13 @@ __metadata:
languageName: node
linkType: hard

"string-template@npm:^1.0.0":
version: 1.0.0
resolution: "string-template@npm:1.0.0"
checksum: 15b0e8616ff25f3ddcd42e4a58a6833cc7be81029f97afc7b8f8d2e7c4d482a136e67399d207b7d2c31080e7a88266c670131a59e50ebc482bfeddb06b3a4215
languageName: node
linkType: hard

"string-width@npm:^1.0.2 || 2 || 3 || 4, string-width@npm:^4.0.0, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.2, string-width@npm:^4.2.3":
version: 4.2.3
resolution: "string-width@npm:4.2.3"
Expand Down Expand Up @@ -9023,6 +9042,7 @@ __metadata:
"@babel/core": ^7.17.9
"@babel/preset-env": ^7.16.11
"@babel/preset-typescript": ^7.16.7
"@release-it/keep-a-changelog": ^2.5.0
"@tsconfig/node12": ^1.0.9
"@types/jest": ^27.4.1
"@types/semver": ^7.3.9
Expand Down

0 comments on commit 66b418f

Please sign in to comment.