Skip to content

Add option packToPath to pack packages instead of publishing#1076

Merged
ecraig12345 merged 1 commit intomainfrom
ecraig/pack-package-2
Oct 21, 2025
Merged

Add option packToPath to pack packages instead of publishing#1076
ecraig12345 merged 1 commit intomainfrom
ecraig/pack-package-2

Conversation

@ecraig12345
Copy link
Copy Markdown
Member

New version of #935: 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, supposing foo depends on bar depends on baz:

/somewhere/my-pack-dir
  1-baz-1.0.0.tgz
  2-bar-1.0.0.tgz
  3-foo-1.0.0.tgz

The numeric prefixes reflect the proper topological ordering, to prevent dependency references to new package versions that don't exist yet if there's a failure or slowdown midway through the publishing job in a monorepo. (For > 9 files, the prefixes would be 0-padded for proper sorting, e.g. 01-bar-... or 001-bar-....)

@ecraig12345 ecraig12345 merged commit 5dcb7d1 into main Oct 21, 2025
8 checks passed
@ecraig12345 ecraig12345 deleted the ecraig/pack-package-2 branch October 21, 2025 23:59
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.

2 participants