File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function checkForNewVersion(cwd) {
15
15
const markdown = fs . readFileSync ( cwd + '/CHANGELOG.md' , { encoding : 'UTF-8' } )
16
16
const nextVersion = markdown . split ( '## ' ) [ 1 ] . split ( '\n' ) [ 0 ] . trim ( )
17
17
18
- if ( / ^ \d \. \d \. \d ( - .+ ) ? $ / . test ( nextVersion ) && version !== nextVersion ) {
18
+ if ( / ^ \d + \. \d + \. \d + ( - .+ ) ? $ / . test ( nextVersion ) && version !== nextVersion ) {
19
19
return nextVersion
20
20
}
21
21
}
@@ -32,6 +32,7 @@ for (const path of packages) {
32
32
const nextVersion = checkForNewVersion ( path )
33
33
if ( nextVersion ) {
34
34
const context = { cwd : path , stdio : 'inherit' }
35
+ tags . push ( `${ getPackageName ( path ) } @${ nextVersion } ` )
35
36
/*
36
37
cp.execSync('npm version ' + nextVersion, context)
37
38
cp.execSync(
@@ -41,7 +42,6 @@ for (const path of packages) {
41
42
)
42
43
cp.execSync('npm publish --access=public', context)
43
44
*/
44
- tags . push ( `${ getPackageName ( path ) } @${ nextVersion } ` )
45
45
}
46
46
} catch ( e ) {
47
47
console . error ( e )
You can’t perform that action at this time.
0 commit comments