Skip to content

Commit d1ee38a

Browse files
committed
release: test
1 parent 397587e commit d1ee38a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/publishPackages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)