tabby/scripts/publish-plugins.js

14 lines
392 B
JavaScript
Raw Permalink Normal View History

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