tabby/scripts/publish-plugins.js

14 lines
375 B
JavaScript
Raw Normal View History

2017-07-01 00:54:55 +02:00
#!/usr/bin/env node
const sh = require('shelljs')
const vars = require('./vars')
const log = require('npmlog')
2021-12-06 09:19:32 +01:00
const { execSync } = require('child_process')
2017-07-01 00:54:55 +02:00
2021-07-11 23:03:55 +02:00
vars.allPackages.forEach(plugin => {
2021-07-01 22:56:23 +02:00
log.info('bump', plugin)
sh.cd(plugin)
sh.exec('npm --no-git-tag-version version ' + vars.version)
2021-12-06 09:19:32 +01:00
execSync('npm publish', { stdio: 'inherit' })
2021-07-01 22:56:23 +02:00
sh.cd('..')
2017-07-01 00:54:55 +02:00
})