Skip to content

Commit

Permalink
fix: publish method
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Henriksen committed Nov 23, 2017
1 parent e1b28ee commit 9e864ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/publish.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
const execa = require('execa');
const updatePackageVersion = require('./update-package-version');

module.exports = async (pluginConfig, packageVsix, logger) => {
module.exports = async (version, packageVsix, logger) => {
const { VSCE_TOKEN } = process.env;

await updatePackageVersion(version, logger);

logger.log('Publishing version %s to vs code marketplace', version);
await execa('vsce', ['publish', '-t', VSCE_TOKEN], { stdio: 'inherit'});
await execa('vsce', ['publish', '-t', VSCE_TOKEN], {stdio: 'inherit'});

if (packageVsix) {
logger.log('Packaging version %s as .vsix', version);
await exaca('vsce', ['package', '--out', packageVsix], { stdio: 'inherit' });
await execa('vsce', ['package', '--out', packageVsix], { stdio: 'inherit' });
}
};

0 comments on commit 9e864ef

Please sign in to comment.