You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Yechuanjie
changed the title
How to use library version in package.json
How should I got the correct version field in package.json?
Aug 7, 2020
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 mysrc
, 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.The text was updated successfully, but these errors were encountered: