Skip to content

Commit 3aedda4

Browse files
committed
[meta] add auto-changelog
1 parent 9f51c39 commit 3aedda4

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
package-lock=false
2+
allow-same-version=true
3+
message=v%s

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
<!-- auto-changelog-above -->
9+
110
2.1.3 / 2020-11-22
211
=================
312
* [Deps] update `string.prototype.trimstart`; use `call-bind` instead of `es-abstract`

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"posttest": "aud --production",
1717
"tests-only": "nyc tape 'test/**/*.js'",
1818
"lint": "eslint --ext=js,mjs .",
19-
"postlint": "es-shim-api --bound"
19+
"postlint": "es-shim-api --bound",
20+
"version": "auto-changelog && git add CHANGELOG.md",
21+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
2022
},
2123
"repository": {
2224
"type": "git",
@@ -45,6 +47,7 @@
4547
"@es-shims/api": "^2.2.3",
4648
"@ljharb/eslint-config": "^21.0.0",
4749
"aud": "^2.0.1",
50+
"auto-changelog": "^2.4.0",
4851
"eslint": "=8.8.0",
4952
"functions-have-names": "^1.2.3",
5053
"has-strict-mode": "^1.0.1",
@@ -73,5 +76,14 @@
7376
},
7477
"engines": {
7578
"node": ">= 0.4"
79+
},
80+
"auto-changelog": {
81+
"output": "CHANGELOG.md",
82+
"template": "keepachangelog",
83+
"unreleased": false,
84+
"commitLimit": false,
85+
"backfillLimit": false,
86+
"hideCredit": true,
87+
"startingVersion": "2.1.4"
7688
}
7789
}

0 commit comments

Comments
 (0)