5
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2025-11-07 18:56:56 +00:00

fix(new_release_patch_version): fix the problem of inaccurate new_release_patch_version

This commit is contained in:
cycjimmy 2020-07-02 14:44:00 +08:00
parent 3c3254030d
commit 5da0ac558e

View file

@ -25,7 +25,7 @@ module.exports = async (result) => {
} }
const {version, notes} = nextRelease; const {version, notes} = nextRelease;
const [major, minor, patch] = version.split('.'); const [major, minor, patch] = version.split(/\.|-|\s/g, 3);
// set outputs // set outputs
core.setOutput(outputs.new_release_published, 'true'); core.setOutput(outputs.new_release_published, 'true');