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) {
1515 const markdown = fs . readFileSync ( cwd + '/CHANGELOG.md' , { encoding : 'UTF-8' } )
1616 const nextVersion = markdown . split ( '## ' ) [ 1 ] . split ( '\n' ) [ 0 ] . trim ( )
1717
18- if ( / ^ \d \. \d \. \d ( - .+ ) ? $ / . test ( nextVersion ) && version !== nextVersion ) {
18+ if ( / ^ \d + \. \d + \. \d + ( - .+ ) ? $ / . test ( nextVersion ) && version !== nextVersion ) {
1919 return nextVersion
2020 }
2121}
@@ -32,6 +32,7 @@ for (const path of packages) {
3232 const nextVersion = checkForNewVersion ( path )
3333 if ( nextVersion ) {
3434 const context = { cwd : path , stdio : 'inherit' }
35+ tags . push ( `${ getPackageName ( path ) } @${ nextVersion } ` )
3536 /*
3637 cp.execSync('npm version ' + nextVersion, context)
3738 cp.execSync(
@@ -41,7 +42,6 @@ for (const path of packages) {
4142 )
4243 cp.execSync('npm publish --access=public', context)
4344 */
44- tags . push ( `${ getPackageName ( path ) } @${ nextVersion } ` )
4545 }
4646 } catch ( e ) {
4747 console . error ( e )
You can’t perform that action at this time.
0 commit comments