-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rush] publishFolder doesn't work as expected #4754
Comments
|
I've tried to use Tricky to explain, but basically I have no valid option within Rush and my current setup to:
The only way I've managed to get it to work is with two explicit build steps. I'd assume if |
Summary
I'm aiming to include an Angular library in my monorepo which consumes an output from another project; StencilJS using the Angular framework integration.
My directory structure:
project-angular
(not published, but builds the finalangular-component-library
package)angular-component-library
(published, fromdist
directory output byproject-angular
'sbuild
script)project-stencil
(main source, outputs artifacts intoangular-component-library
via itsbuild
script)The
angular-component-library
andproject-stencil
are in a lockstep version policy:My rush projects in
rush.json
:The action I'm performing where I run into trouble is that
rush publish
doesn't work as expected and I believe thepublishFolder
argument is the culprit. I would assume that my CI/CD pipeline would:angular-component-library
in it'sdist
directory viaproject-angular
)What went wrong is when running
rush build
beforerush publish
thepackage.json
in thepublishFolder
version is not bumped, which leads to an attempt to publish the previous version.Ultimately, my CI/CD pipeline looks like this:
What I'd expect to work is:
I can't use
rush version --bump
beforerush build
andrush publish
because it requiresnextBump
to be explicitly stated in the version policy and bypasses the definitions in the change files. WithoutnextBump
in my version policy Rush will produce aninvalid version
error. If I attempt to userush publish --apply
before building Rush will fail (cannot find package-name
), because the package is not found in the yet-to-be-compiledpublishFolder
.Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/rush
globally installed version?rushVersion
from rush.json?useWorkspaces
from rush.json?pnpm-config.json
node -v
)?The text was updated successfully, but these errors were encountered: