Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Yechuanjie opened this issue Aug 5, 2020 · 0 comments
Open

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

Yechuanjie opened this issue Aug 5, 2020 · 0 comments

Comments

@Yechuanjie
Copy link

Yechuanjie commented Aug 5, 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 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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant