Skip to content

Commit

Permalink
release: test
Browse files Browse the repository at this point in the history
  • Loading branch information
warm-coolguy committed Feb 5, 2024
1 parent 397587e commit d1ee38a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/publishPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function checkForNewVersion(cwd) {
const markdown = fs.readFileSync(cwd + '/CHANGELOG.md', { encoding: 'UTF-8' })
const nextVersion = markdown.split('## ')[1].split('\n')[0].trim()

if (/^\d\.\d\.\d(-.+)?$/.test(nextVersion) && version !== nextVersion) {
if (/^\d+\.\d+\.\d+(-.+)?$/.test(nextVersion) && version !== nextVersion) {
return nextVersion
}
}
Expand All @@ -32,6 +32,7 @@ for (const path of packages) {
const nextVersion = checkForNewVersion(path)
if (nextVersion) {
const context = { cwd: path, stdio: 'inherit' }

Check failure on line 34 in scripts/publishPackages.js

View workflow job for this annotation

GitHub Actions / lint-test

'context' is assigned a value but never used

Check failure on line 34 in scripts/publishPackages.js

View workflow job for this annotation

GitHub Actions / lint-test

'context' is assigned a value but never used

Check failure on line 34 in scripts/publishPackages.js

View workflow job for this annotation

GitHub Actions / lint-test

'context' is assigned a value but never used

Check failure on line 34 in scripts/publishPackages.js

View workflow job for this annotation

GitHub Actions / lint-test

'context' is assigned a value but never used

Check failure on line 34 in scripts/publishPackages.js

View workflow job for this annotation

GitHub Actions / lint-test

'context' is assigned a value but never used
tags.push(`${getPackageName(path)}@${nextVersion}`)
/*
cp.execSync('npm version ' + nextVersion, context)
cp.execSync(
Expand All @@ -41,7 +42,6 @@ for (const path of packages) {
)
cp.execSync('npm publish --access=public', context)
*/
tags.push(`${getPackageName(path)}@${nextVersion}`)
}
} catch (e) {
console.error(e)
Expand Down

0 comments on commit d1ee38a

Please sign in to comment.