Skip to content
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

Add option packToPath to pack packages instead of publishing #935

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ecraig12345
Copy link
Member

@ecraig12345 ecraig12345 commented Jan 4, 2024

Add an option packToPath to support the new workflow of using an ADO task to publish to npm. If this option is provided, the actual publish step will be skipped, and instead npm pack will be called on each package (with the resulting files moved to the specified directory).

Usage from command line (could also be in a config file):
beachball publish --packToPath /somewhere/my-pack-dir

The files in the pack directory will look like this:

/somewhere/my-pack-dir
  bar-1.0.0.tgz
  baz-1.0.0.tgz
  foo-1.0.0.tgz
  order.json

order.json contains an array of tgz filenames indicating the topological order in which they should be published, to prevent broken packages if publishing fails partway through in a monorepo. (I doubt this is supported by the ADO task right now, but it's a feature we should request...)

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