publish

vb publish [--only] TAGS...

Description

Cause artifacts identified by TAGS… to be published (made non-private). This can be used (for example) to convert a private branch into a public branch, or to publish a bundle that was imported privately.

If any of TAGS names a branch, then all check-ins on the most recent instance of that branch are included, not just the most recent check-in.

If any of TAGS name check-ins then all files and tags associated with those check-ins are also published automatically. Except if the –only option is used, then only the specific artifacts identified by TAGS are published.

If a TAG is already public, this command is a harmless no-op.

Examples

  • Create a private branch and publish it

$ vb ci -m "base"
Committed version: e08514c6389b9d2d2ba41f59e59a88948326018d5384dd26ccb018013fd29344
$ vb ci -m "private work" --branch feature/private --private
Committed version: 01cca1523f0ffe93caf72d504e11584689499db7c276a36b9751e4d8bb775ae2
$ vb publish feature/private
  • Publish only the current check-in

$ vb publish --only current