Skip to content

Can't trigger release if there's only one commit #945

Open
@egoist

Description

Describe the bug
A clear and concise description of what the bug is.
with only one commit, e.g. feat: init, it says:

› Getting a revision range for this release.
Git tag 'v0.0.0' doesn't exist.
? From which commit do you want to release? 1) 31b86aa (HEAD -> main, origin/main) feat: init
  31b86aa..HEAD
› Calculating the next version.
Nothing to release!

To Reproduce
Steps to reproduce the behavior:

  1. create a repo
  2. create a commit
  3. run shipjs prepare

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • environment: (your local machine, CircleCI, Travis CI, etc.)
  • node -v:
  • npm -v or yarn -v:
  • Ship.js version: 0.23.0

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions