chore: automate release commits (#6628)

Issue: #6482
This commit is contained in:
Mathias Bynens 2020-11-30 10:29:38 +01:00 committed by GitHub
parent 46e74ff3f5
commit 53ce52e3b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -17,11 +17,10 @@
module.exports = {
releaseCommitMessageFormat: 'chore(release): mark v{{currentTag}}',
skip: {
commit: true,
tag: true,
},
scripts: {
prerelease: 'node utils/remove_version_suffix.js',
postbump: 'IS_RELEASE=true npm run doc',
postbump: 'IS_RELEASE=true npm run doc && git add --update',
},
};

View File

@ -276,8 +276,8 @@ node utils/bisect.js --good 686378 --bad 706915 script.js
Releasing to npm consists of the following phases:
1. Source Code: mark a release.
1. Run `npm run release` to bump the version number in `package.json`, populate the changelog, and update the docs.
1. Send a PR titled `'chore(release): mark vXXX.YYY.ZZZ'` ([example](https://github.com/puppeteer/puppeteer/pull/5078)).
1. Run `npm run release`. (This automatically bumps the version number in `package.json`, populates the changelog, updates the docs, and creates a Git commit for the next step.)
1. Send a PR for the commit created in the previous step.
1. Make sure the PR passes **all checks**.
- **WHY**: there are linters in place that help to avoid unnecessary errors, e.g. [like this](https://github.com/puppeteer/puppeteer/pull/2446)
1. Merge the PR.

View File

@ -34,7 +34,7 @@
"test-install": "scripts/test-install.sh",
"generate-docs": "npm run tsc && api-extractor run --local --verbose && api-documenter markdown -i temp -o new-docs",
"ensure-correct-devtools-protocol-revision": "ts-node -s scripts/ensure-correct-devtools-protocol-package",
"release": "node utils/remove_version_suffix.js && standard-version"
"release": "node utils/remove_version_suffix.js && standard-version --commit-all"
},
"files": [
"lib/",