-
Notifications
You must be signed in to change notification settings - Fork 491
Description
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.