fix #166
This commit is contained in:
parent
b7d8fa3040
commit
5affbc8bdf
3
index.js
3
index.js
|
@ -182,6 +182,9 @@ const workspace = process.env.GITHUB_WORKSPACE;
|
|||
console.log('current 2:', current, '/', 'version:', version);
|
||||
console.log('execute npm version now with the new version:', version);
|
||||
newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString().trim().replace(/^v/, '');
|
||||
// fix #166 - npm workspaces
|
||||
// https://github.com/phips28/gh-action-bump-version/issues/166#issuecomment-1142640018
|
||||
newVersion = newVersion.split(/\n/)[1] || newVersion;
|
||||
console.log('newVersion 2:', newVersion);
|
||||
newVersion = `${tagPrefix}${newVersion}`;
|
||||
console.log(`newVersion after merging tagPrefix+newVersion: ${newVersion}`);
|
||||
|
|
Loading…
Reference in New Issue