Skip to content

Commit

Permalink
[meta] add auto-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 26, 2022
1 parent 9685dce commit af1de69
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
package-lock=false
allow-same-version=true
message=v%s
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Unreleased
==================
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

<!-- auto-changelog-above -->

3.3.3 / 2022-08-08
==================
Expand Down
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
"test": "npm run tests-only --",
"posttest": "aud --production",
"tests-only": "jest --coverage",
"test:watch": "npm run tests-only -- --watch"
"test:watch": "npm run tests-only -- --watch",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
"devDependencies": {
"@babel/core": "^7.19.1",
"@babel/eslint-parser": "^7.19.1",
"@babel/parser": "^7.19.1",
"aud": "^2.0.1",
"auto-changelog": "^2.4.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-jest": "^20.0.3",
Expand Down Expand Up @@ -62,6 +65,15 @@
"array-includes": "^3.1.5",
"object.assign": "^4.1.4"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true,
"startingVersion": "3.3.4"
},
"publishConfig": {
"ignore": [
".github/workflows",
Expand Down

0 comments on commit af1de69

Please sign in to comment.