question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Detect if release is necessary, exit if not

See original GitHub issue

semantic-release has a sweet way of detecting whether or not it should follow through with a release. Some commits are just docs, style, and even refactor, that don’t really affect the published build, hence a release shouldn’t really take place. Currently, standard-version tags the release regardless of what the commits are – for commits that don’t affect the build, standard-version bumps the version number as a patch. We use standard-version at work for our CI builds and it works great for publishing to our internal registry, but it overpopulates our registry with unnecessary releases. The same with Bitbucket and unnecessary release tags.

Is this a viable feature that can be implemented into standard-version? Or is always releasing the correct behavior and should always be expected?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:46
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

19reactions
bcoecommented, Nov 29, 2017

@stevemao I could see an argument for having a --force option, that creates a release even if there’s no changes in the history (which is something I sometimes do). Perhaps the default behavior could be to warn and exit though? (with a tip as to how to use --force).

@enriquecaballero what do you think? (also sorry for this incredibly slow reply).

10reactions
rodoabadcommented, Jun 1, 2018

Is this going to be a feature in the future? This is handy for CI especially when your CI pushes tags and commits back to Git. This will cause an endless cycle as each push will trigger a new version that’s going to push a new change log again and so on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C# if/then directives for debug vs release - Stack Overflow
I prefer checking it like this over looking for #define directives: ... If it is not defined, the call and the assignment isDebug...
Read more >
The exit() function in C++ | DigitalOcean
Inside the for loop, we check whether the number is divisible by the loop iterator at that instant. If so, we can directly...
Read more >
Complete Student Loan Exit Counseling
You must complete exit counseling when you leave school or drop below half-time ... Parent PLUS Loan borrowers are not required to complete...
Read more >
Use Bash Strict Mode (Unless You Love Debugging)
If one line in a script fails, but the last line succeeds, the whole script has a successful exit code. That makes it...
Read more >
1910.146 - Permit-required confined spaces
(2) Has limited or restricted means for entry or exit (for example, tanks, ... If the employer decides that its employees will not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found