Skip to content

Commit bb5cbd6

Browse files
committed
[meta] add auto-changelog
1 parent 8067910 commit bb5cbd6

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
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: 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
1.3.0 / 2022-04-11
211
=================
312
* [New] `shim`/`auto`: add `flat` to `Symbol.unscopables`

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
"posttest": "aud --production",
2929
"tests-only": "nyc tape 'test/**/*.js'",
3030
"lint": "eslint --ext=js,mjs .",
31-
"postlint": "es-shim-api --bound"
31+
"postlint": "es-shim-api --bound",
32+
"version": "auto-changelog && git add CHANGELOG.md",
33+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
3234
},
3335
"repository": {
3436
"type": "git",
@@ -94,6 +96,15 @@
9496
"engines": {
9597
"node": ">= 0.4"
9698
},
99+
"auto-changelog": {
100+
"output": "CHANGELOG.md",
101+
"template": "keepachangelog",
102+
"unreleased": false,
103+
"commitLimit": false,
104+
"backfillLimit": false,
105+
"hideCredit": true,
106+
"startingVersion": "1.3.1"
107+
},
97108
"publishConfig": {
98109
"ignore": [
99110
".github/workflows"

0 commit comments

Comments
 (0)