Release: set preReleaseBase in config file

https://github.com/release-it/release-it/issues/1128#issuecomment-2224692805

Closes gh-5518
This commit is contained in:
Timmy Willison 2024-07-12 15:43:41 -04:00 committed by GitHub
parent 5518b2da18
commit 1fa8df5dbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 2 deletions

View File

@ -7,6 +7,7 @@ if ( !blogURL || !blogURL.startsWith( "https://blog.jquery.com/" ) ) {
} }
module.exports = { module.exports = {
preReleaseBase: 1,
hooks: { hooks: {
"before:init": "bash ./build/release/pre-release.sh", "before:init": "bash ./build/release/pre-release.sh",
"before:git:release": "git add -f dist/ dist-module/ changelog.md", "before:git:release": "git add -f dist/ dist-module/ changelog.md",

View File

@ -53,7 +53,6 @@ The release script will not run without this token.
1. Create draft blog post on blog.jquery.com; save the link before publishing. The link is required to run the release. 1. Create draft blog post on blog.jquery.com; save the link before publishing. The link is required to run the release.
- Highlight major changes and reason for release. - Highlight major changes and reason for release.
- Add contributor list generated in the below release script.
- Add HTML from the `changelog.html` generated in the below release script. - Add HTML from the `changelog.html` generated in the below release script.
- Use HTML from the `contributors.html` generated in the below release script in the "Thanks" section. - Use HTML from the `contributors.html` generated in the below release script in the "Thanks" section.

View File

@ -59,7 +59,7 @@
"prepare": "husky", "prepare": "husky",
"pretest": "npm run qunit-fixture && npm run babel:tests && npm run npmcopy", "pretest": "npm run qunit-fixture && npm run babel:tests && npm run npmcopy",
"qunit-fixture": "node build/tasks/qunit-fixture.js", "qunit-fixture": "node build/tasks/qunit-fixture.js",
"release": "release-it --preReleaseBase=1", "release": "release-it",
"release:cdn": "node build/release/cdn.js", "release:cdn": "node build/release/cdn.js",
"release:changelog": "node build/release/changelog.js", "release:changelog": "node build/release/changelog.js",
"release:clean": "rimraf tmp --glob changelog.{md,html} contributors.html", "release:clean": "rimraf tmp --glob changelog.{md,html} contributors.html",