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') {
|
||||
for (const pkg of listPackages()) {
|
||||
if (arg === 'updated') {
|
||||
const pkgVersion = require(`../packages/${pkg}/package.json`).version
|
||||
const published = await checkVersion(pkg, pkgVersion)
|
||||
const pkgVersion = require(`../packages/${pkg}/package.json`).version
|
||||
const published = await checkVersion(pkg, pkgVersion)
|
||||
|
||||
if (published) {
|
||||
console.log('[i] %s is up to date', pkg)
|
||||
continue
|
||||
}
|
||||
if (published) {
|
||||
console.log('[i] %s is up to date', pkg)
|
||||
continue
|
||||
}
|
||||
|
||||
await publishSinglePackage(pkg)
|
||||
|
|
Loading…
Reference in a new issue