Repository navigation
Support workspace packages in shared release workflows - #3
Merged
Merged
Conversation
Add optional package-directory and tag-prefix inputs while preserving root-package defaults. Version the selected workspace with the shared root lockfile, stage from its directory and namespace release branches and tags. Skip tag jobs for other package release PRs. Document workspace callers and add offline fixture tests for root/workspace versioning, tag creation, branch policies and invalid package paths.
Preserve all 15 offline workflow fixture tests, compile TypeScript before running Jest, and switch CI and local instructions to npm. Remove Python and PyYAML requirements.
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.
The shared release workflows currently assume the npm package is at the repository root. Add optional
package-directory(default.) andtag-prefix(defaultv) inputs so workspace packages can reuse the same workflows without repository-specific release scripts.Version preparation updates the selected manifest and root lockfile. Dependency installation and test/build commands remain at the repository root, while npm staging runs from the selected package directory. Release branches and tags use the configured prefix, and tag jobs skip release PRs for other packages. Existing callers retain their current root-package behaviour and tag names.
Update the caller templates and documentation, and add CI for 15 TypeScript/Jest regression tests that execute the actual workflow shell steps against disposable root-package and workspace fixtures. Tests compile with TypeScript and run via
npm test; no Python dependency is required.Validation: clean
npm ci,npm test(15 passing tests), andnpm run typecheck. Version bumps run offline and Git tag pushes target local repositories. npm staging and publishing are not executed by the tests.