-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Morten Henriksen
committed
Nov 23, 2017
1 parent
e1b28ee
commit 9e864ef
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }); | ||
} | ||
}; |