Skip to content

Publish Command #7

Open
Open
@SteelAlloy

Description

@SteelAlloy

Steps

nest publish

  1. evaluate the config
  2. create a tarball with a uuid in the file name
  3. upload the tarball and config to twig
  4. twig does it's magic and uploads to arweave
  5. twig sends the arweave URLs and the config to the api
  6. db gets updated, module is published

nest publish --wallet <path>

  1. evaluate the config
  2. create a tarball
  3. upload the tarball to arweave and get the file URLs
  4. send the arweave URLs and the config to the api
  5. db is updated, module is published

CLI

nest publish [ version ] [ --git ] [ --pre <id> ] [ --deno <semver>] [ --wallet <path> ] [ --unlisted ]

ARGUMENTS

  version            semver tag or one of "major", "minor", "patch" (default: "patch")

OPTIONS

  --git              use the latest git tag as version (ignored if <version> is provided)
  --pre <id>         publish as a prerelease with optional identifier
  --deno <semver>    semver range for supported deno versions
  --wallet <path>    path to custom arweave wallet
  --unlisted         publish as an unlisted version

semver behavior

# say the current version is [email protected]

nest publish                      # [email protected]
nest publish 1.2.3                # [email protected]
nest publish patch                # [email protected]
nest publish minor                # [email protected]
nest publish major                # [email protected]

nest publish --pre                # [email protected]
nest publish 1.2.3 --pre          # [email protected]
nest publish patch --pre          # [email protected]
nest publish minor --pre          # [email protected]
nest publish major --pre          # [email protected]

nest publish --pre alpha          # [email protected]
nest publish 1.2.3 --pre beta     # [email protected]
nest publish patch --pre rc       # [email protected]
nest publish minor --pre asdf     # [email protected]
nest publish major --pre pre      # [email protected]

Notes

  • if no versions are published yet and user runs nest publish use the version 0.1.0 (unstable)
  • when (and only) uploading to twig, include the .nest directory in the tarball

ToDo

  • create a tarball
  • send the config and uuid to the api
  • upload the tarball to arweave
  • do the twig magic locally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions