Skip to content

Commit 1dfd455

Browse files
chore: add postpublish script
1 parent 45a931a commit 1dfd455

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"prelint": "yarn generate-eslintrc",
2727
"lint": "eslint './**/*.ts' --ext .ts",
2828
"prepublishOnly": "yarn lint && yarn test",
29+
"postpublish": "git push --tags && auto-changelog -t keepachangelog && git add CHANGELOG.md && git commit -m \"docs(changelog): update for v$npm_package_version\" && git push",
2930
"report-coverage": "codecov -f coverage/lcov.info",
3031
"test": "jest"
3132
},
@@ -53,6 +54,7 @@
5354
"@types/node": "^12.7.1",
5455
"@typescript-eslint/eslint-plugin": "^1.13.0",
5556
"@typescript-eslint/parser": "^1.13.0",
57+
"auto-changelog": "^1.14.1",
5658
"codecov": "^3.5.0",
5759
"commitizen": "^4.0.3",
5860
"cz-conventional-changelog": "^3.0.2",

yarn.lock

+32-3
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,19 @@ atob@^2.1.1:
702702
version "2.1.2"
703703
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
704704

705+
auto-changelog@^1.14.1:
706+
version "1.14.1"
707+
resolved "https://registry.yarnpkg.com/auto-changelog/-/auto-changelog-1.14.1.tgz#182f4311b8308be27c64f4e4c0901c7be37ea34e"
708+
dependencies:
709+
commander "^2.20.0"
710+
core-js "^3.1.4"
711+
handlebars "^4.1.2"
712+
lodash.uniqby "^4.7.0"
713+
node-fetch "^2.6.0"
714+
parse-github-url "^1.0.2"
715+
regenerator-runtime "^0.13.2"
716+
semver "^6.1.1"
717+
705718
aws-sign2@~0.7.0:
706719
version "0.7.0"
707720
resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8"
@@ -1036,7 +1049,7 @@ combined-stream@^1.0.6, combined-stream@~1.0.6:
10361049
dependencies:
10371050
delayed-stream "~1.0.0"
10381051

1039-
commander@~2.20.0:
1052+
commander@^2.20.0, commander@~2.20.0:
10401053
version "2.20.0"
10411054
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422"
10421055

@@ -1124,6 +1137,10 @@ core-js@^2.4.0, core-js@^2.5.0:
11241137
version "2.6.9"
11251138
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.9.tgz#6b4b214620c834152e179323727fc19741b084f2"
11261139

1140+
core-js@^3.1.4:
1141+
version "3.1.4"
1142+
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.1.4.tgz#3a2837fc48e582e1ae25907afcd6cf03b0cc7a07"
1143+
11271144
[email protected], core-util-is@~1.0.0:
11281145
version "1.0.2"
11291146
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
@@ -3055,6 +3072,10 @@ [email protected]:
30553072
version "4.0.1"
30563073
resolved "https://registry.yarnpkg.com/lodash.unescape/-/lodash.unescape-4.0.1.tgz#bf2249886ce514cda112fae9218cdc065211fc9c"
30573074

3075+
lodash.uniqby@^4.7.0:
3076+
version "4.7.0"
3077+
resolved "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302"
3078+
30583079
lodash.upperfirst@^4.3.1:
30593080
version "4.3.1"
30603081
resolved "https://registry.yarnpkg.com/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz#1365edf431480481ef0d1c68957a5ed99d49f7ce"
@@ -3343,7 +3364,7 @@ nice-try@^1.0.4:
33433364
version "1.0.5"
33443365
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
33453366

3346-
node-fetch@^2.2.0:
3367+
node-fetch@^2.2.0, node-fetch@^2.6.0:
33473368
version "2.6.0"
33483369
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd"
33493370

@@ -3630,6 +3651,10 @@ parse-entities@^1.1.0:
36303651
is-decimal "^1.0.0"
36313652
is-hexadecimal "^1.0.0"
36323653

3654+
parse-github-url@^1.0.2:
3655+
version "1.0.2"
3656+
resolved "https://registry.yarnpkg.com/parse-github-url/-/parse-github-url-1.0.2.tgz#242d3b65cbcdda14bb50439e3242acf6971db395"
3657+
36333658
parse-json@^2.2.0:
36343659
version "2.2.0"
36353660
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9"
@@ -3911,6 +3936,10 @@ regenerator-runtime@^0.11.0:
39113936
version "0.11.1"
39123937
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
39133938

3939+
regenerator-runtime@^0.13.2:
3940+
version "0.13.3"
3941+
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5"
3942+
39143943
regex-not@^1.0.0, regex-not@^1.0.2:
39153944
version "1.0.2"
39163945
resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c"
@@ -4222,7 +4251,7 @@ [email protected]:
42224251
version "6.1.1"
42234252
resolved "https://registry.yarnpkg.com/semver/-/semver-6.1.1.tgz#53f53da9b30b2103cd4f15eab3a18ecbcb210c9b"
42244253

4225-
semver@^6.0.0, semver@^6.1.2:
4254+
semver@^6.0.0, semver@^6.1.1, semver@^6.1.2:
42264255
version "6.3.0"
42274256
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
42284257

0 commit comments

Comments
 (0)