ci: dont publish same version
This commit is contained in:
parent
70413dd7b0
commit
e8556df527
1 changed files with 5 additions and 7 deletions
|
@ -87,14 +87,12 @@ async function main(arg = process.argv[2]) {
|
||||||
|
|
||||||
if (arg === 'all' || arg === 'updated') {
|
if (arg === 'all' || arg === 'updated') {
|
||||||
for (const pkg of listPackages()) {
|
for (const pkg of listPackages()) {
|
||||||
if (arg === 'updated') {
|
const pkgVersion = require(`../packages/${pkg}/package.json`).version
|
||||||
const pkgVersion = require(`../packages/${pkg}/package.json`).version
|
const published = await checkVersion(pkg, pkgVersion)
|
||||||
const published = await checkVersion(pkg, pkgVersion)
|
|
||||||
|
|
||||||
if (published) {
|
if (published) {
|
||||||
console.log('[i] %s is up to date', pkg)
|
console.log('[i] %s is up to date', pkg)
|
||||||
continue
|
continue
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await publishSinglePackage(pkg)
|
await publishSinglePackage(pkg)
|
||||||
|
|
Loading…
Reference in a new issue