Skip to content

Support workspace packages in shared release workflows - #3

Merged
GreenImp merged 2 commits into
mainfrom
feature/workspace-releases
Nov 16, 2026
Merged

GreenImp merged 2 commits into
mainfrom
feature/workspace-releases

Conversation

@GreenImp

@GreenImp GreenImp commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

The shared release workflows currently assume the npm package is at the repository root. Add optional package-directory (default .) and tag-prefix (default v) 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), and npm run typecheck. Version bumps run offline and Git tag pushes target local repositories. npm staging and publishing are not executed by the tests.

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.
@GreenImp
GreenImp merged commit 789c8a2 into main Nov 16, 2026
1 check passed
@GreenImp
GreenImp deleted the feature/workspace-releases branch November 16, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant