Skip to content

Commit 90ef840

Browse files
committed
[meta] add auto-changelog
1 parent 1997871 commit 90ef840

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

CHANGELOG.md

+9
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.2.1
211
- [Deps] update `define-properties`, `es-abstract`
312
- [actions] update rebase action to use reusable workflow

package.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"pretest": "npm run lint",
2020
"tests-only": "nyc tape 'test/**/*.js'",
2121
"test": "npm run tests-only",
22-
"posttest": "aud --production"
22+
"posttest": "aud --production",
23+
"version": "auto-changelog && git add CHANGELOG.md",
24+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
2325
},
2426
"repository": {
2527
"type": "git",
@@ -43,6 +45,7 @@
4345
"@es-shims/api": "^2.3.1",
4446
"@ljharb/eslint-config": "^21.0.1",
4547
"aud": "^2.0.2",
48+
"auto-changelog": "^2.4.0",
4649
"eslint": "=8.8.0",
4750
"functions-have-names": "^1.2.3",
4851
"has-strict-mode": "^1.0.1",
@@ -58,6 +61,15 @@
5861
"es-abstract": "^1.20.4",
5962
"es-shim-unscopables": "^1.0.0"
6063
},
64+
"auto-changelog": {
65+
"output": "CHANGELOG.md",
66+
"template": "keepachangelog",
67+
"unreleased": false,
68+
"commitLimit": false,
69+
"backfillLimit": false,
70+
"hideCredit": true,
71+
"startingVersion": "2.2.2"
72+
},
6173
"publishConfig": {
6274
"ignore": [
6375
".github/workflows"

0 commit comments

Comments
 (0)