1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-21 01:21:52 +03:00
tabby/scripts/publish-plugins.js

14 lines
392 B
JavaScript
Raw Normal View History

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