build(dev-infra): add release automation script for zone.js#67136
Open
atscott wants to merge 2 commits intoangular:mainfrom
Open
build(dev-infra): add release automation script for zone.js#67136atscott wants to merge 2 commits intoangular:mainfrom
atscott wants to merge 2 commits intoangular:mainfrom
Conversation
e358fe7 to
53e0220
Compare
562e2f4 to
62b3ee4
Compare
a67e2f6 to
f331814
Compare
This commit introduces a new release automation script for zone.js, located at packages/zone.js/tools/release.mts. It also updates: - packages/zone.js/package.json: Adds 'release' script. - package.json: Adds 'zonejs:release' script for root access. - packages/zone.js/DEVELOPER.md: Documents the new automated release process. - tools/gulp-tasks/changelog-zonejs.js: Filters changelog to only include 'feat', 'fix', and 'perf' commits.
f331814 to
05df6a2
Compare
alan-agius4
reviewed
Feb 19, 2026
package.json
Outdated
| "benchmarks": "node scripts/benchmarks/index.mts", | ||
| "diff-release-package": "node scripts/diff-release-package.mts" | ||
| "diff-release-package": "node scripts/diff-release-package.mts", | ||
| "zonejs:release": "node packages/zone.js/tools/release.mts" |
Contributor
There was a problem hiding this comment.
Suggested change
| "zonejs:release": "node packages/zone.js/tools/release.mts" | |
| "zonejs:release": "pnpm --filter=zone.js release" |
alan-agius4
reviewed
Feb 19, 2026
alan-agius4
reviewed
Feb 19, 2026
alan-agius4
reviewed
Feb 19, 2026
| return newVersion; | ||
| } | ||
|
|
||
| async function getPreviousTag(): Promise<string> { |
Contributor
There was a problem hiding this comment.
Instead of the tag can't we just use the version in the package.json as the current version?
Contributor
Author
There was a problem hiding this comment.
The current and next versions are determined from what's in package.json. This is only used as a "sanity check" in the console output as "the previous release was {previousTagVersion}"
Contributor
Author
There was a problem hiding this comment.
I guess it's also required in the current script for the changelog generation
alan-agius4
reviewed
Feb 19, 2026
alan-agius4
reviewed
Feb 19, 2026
1224144 to
627fd77
Compare
627fd77 to
c1ef944
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a release automation script for
zone.js, converting the manual steps outlined inpackages/zone.js/DEVELOPER.mdinto an interactive script located atpackages/zone.js/tools/release.mts.The script supports two workflows:
Usage:
cd packages/zone.js pnpm release