typescript-library-starter icon indicating copy to clipboard operation
typescript-library-starter copied to clipboard

How should I got the correct version field in package.json?

Open Yechuanjie opened this issue 5 years ago • 0 comments

When travis-ci run semantic-release, and my commit will trigger a patch release, then I got an error:

An error occurred while running semantic-release: { Error: Command failed with exit code 1: npm version 1.2.1 --userconfig /tmp/68e49528330ee87b9093f50d818aa72a/.npmrc --no-git-tag-version

'npm ERR! Version not changed, might want --allow-same-version\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /home/travis/.npm/_logs/2020-08-07T04_05_26_921Z-debug.log',

Because I need read the veriosn field in my src , so I manually changed the version to v1.2.1.

When I specify that the version field is consistent with the version number of the patch,I will got this error.

Please help how should I got the correct version field in package.json or any ohter methods.

Yechuanjie avatar Aug 05 '20 07:08 Yechuanjie