Skip to content

Commit af1de69

Browse files
committed
[meta] add auto-changelog
1 parent 9685dce commit af1de69

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

.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: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
Unreleased
2-
==================
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 -->
39

410
3.3.3 / 2022-08-08
511
==================

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@
1515
"test": "npm run tests-only --",
1616
"posttest": "aud --production",
1717
"tests-only": "jest --coverage",
18-
"test:watch": "npm run tests-only -- --watch"
18+
"test:watch": "npm run tests-only -- --watch",
19+
"version": "auto-changelog && git add CHANGELOG.md",
20+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
1921
},
2022
"devDependencies": {
2123
"@babel/core": "^7.19.1",
2224
"@babel/eslint-parser": "^7.19.1",
2325
"@babel/parser": "^7.19.1",
2426
"aud": "^2.0.1",
27+
"auto-changelog": "^2.4.0",
2528
"babel-cli": "^6.26.0",
2629
"babel-core": "^6.26.3",
2730
"babel-jest": "^20.0.3",
@@ -62,6 +65,15 @@
6265
"array-includes": "^3.1.5",
6366
"object.assign": "^4.1.4"
6467
},
68+
"auto-changelog": {
69+
"output": "CHANGELOG.md",
70+
"template": "keepachangelog",
71+
"unreleased": false,
72+
"commitLimit": false,
73+
"backfillLimit": false,
74+
"hideCredit": true,
75+
"startingVersion": "3.3.4"
76+
},
6577
"publishConfig": {
6678
"ignore": [
6779
".github/workflows",

0 commit comments

Comments
 (0)