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

Publish Command #7

Open
1 of 4 tasks
SteelAlloy opened this issue Nov 16, 2020 · 1 comment
Open
1 of 4 tasks

Publish Command #7

SteelAlloy opened this issue Nov 16, 2020 · 1 comment
Milestone

Comments

@SteelAlloy
Copy link
Member

SteelAlloy commented Nov 16, 2020

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
@SteelAlloy SteelAlloy added this to the MVP 1 milestone Nov 16, 2020
@github-actions
Copy link

This issue has been marked as stale due to inactivity. Remove the stale label or comment or this will be closed in 7 days.

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

No branches or pull requests

2 participants