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.

How to update badge version in README.md when I run standard-version?

See original GitHub issue

I have README.md:

# proj-name
## proj-title

[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)

And when I run standard-version this version not updated.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
aaronjameslangcommented, Jun 8, 2018

If it’s an npm module you want something like npm version which will track the latest published version.

[![npm version](https://badge.fury.io/js/survey-monkey-streams.svg)](//npmjs.com/package/survey-monkey-streams)

Replace survey-monkey-streams with your module name

Could you link to the project you’re working on, for context?

3reactions
loktionov129commented, Jun 8, 2018

@aaronjameslang I found a way to update version of badge: [![GitHub version](https://badge.fury.io/gh/conventional-changelog%2Fstandard-version.svg)](https://badge.fury.io/gh/conventional-changelog%2Fstandard-version) This badge gets version from github releases.


And also we can use postchangelog lifecycle. For example:

  "standard-version": {
    "scripts": {
      "postchangelog": "cat package.json | grep '\"version\"' > VERSION"
    }
  }
Read more comments on GitHub >

github_iconTop Results From Across the Web

standard-version - npmfs
1. bumps the version in metadata files (package.json, composer.json, etc). 28. 2. uses [conventional-changelog](https://github.com ...
Read more >
Adding badges to your README | egghead.io
Adding badges to your readme gives first-timers and old-timers an at-a-glance ... In this lesson, we'll add several badges using shields.io.
Read more >
Semantic Versioning 2.0.0 | Semantic Versioning
Given a version number MAJOR.MINOR.PATCH, increment the: MAJOR version when you make incompatible API changes; MINOR version when you add functionality in a ......
Read more >
istanbul-badges-readme | Yarn - Package Manager
Creates README badges from istanbul coverage report ... changes to this project will be documented in this file. See standard-version for commit guidelines....
Read more >
readme-coverage-badger - PyPI
Latest version. Released: Jan 21, 2022. automatically generates your project's coverage badge using the shields.io service, and then updates your README ...
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