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

Define CLI commands and parameters #1

Closed
Eomm opened this issue Mar 28, 2019 · 5 comments
Closed

Define CLI commands and parameters #1

Eomm opened this issue Mar 28, 2019 · 5 comments

Comments

@Eomm
Copy link
Member

Eomm commented Mar 28, 2019

We should define the big picture of what we want to do with the tool.

The commands I think could be needed are:

# will process the release
releasify publish

# print out all the info as if I release right now
releasify publish --dry-run

# print out the login of git and npm
releasify whoami

# do what will need for the login process
releasify login

Others?

@mcollina
Copy link
Member

releasify draft // shows the release notes

@Eomm
Copy link
Member Author

Eomm commented Mar 29, 2019

releasify login [--system=[gihub|npm]] (now I'm not sure this will be useful if we use spawn to run commands)

  • login to ${system} (default an array with [github, npm])

releasify whoami

  • check auth to systems (github + npm) -> fail if you are not logged in

releasify publish --npm-otp=123456

  • check auth to systems (github + npm) -> fail if you are not logged in
  • check uncommitted code -> fail if there is
  • define the release message + lables
  • bump version in function of labels
  • output the new version
  • npm publish
  • git push
  • build the release on github
  • teardown

releasify draft

  • check uncommitted code -> fail if there is
  • define the release message + lables
  • output the new version
  • teardown

Could be ok as first version commands and main steps?

@mcollina
Copy link
Member

releasify publish --npm-otp=123456

I don't think we need --npm-otp=123456, we just need to make sure that npm publish asks for it to the user.

@Eomm Eomm mentioned this issue Mar 31, 2019
@Eomm Eomm mentioned this issue Apr 8, 2019
@Eomm
Copy link
Member Author

Eomm commented Apr 17, 2019

An update:

releasify login

This could become a command to facilitate the creation of tokens (github and/or npm). Not sure it is useful so I would drop it.

releasify whoami

Print the npm login, the git user (git config user.email).
It could be good to view also the owner of GitHub token but the API required the name of the account.. so it is useless unless using the same npm username.. but this logic doesn't seem useful right now.

I don't think we need --npm-otp=123456, we just need to make sure that npm publish asks for it to the user.

This will be the next implementation 👍

@Eomm
Copy link
Member Author

Eomm commented Feb 18, 2020

Released the v1

@Eomm Eomm closed this as completed Feb 18, 2020
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