Skip to content

Commit

Permalink
fix(vscode): add deploy as a semantic-release plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
randymarsh77 committed Jun 4, 2020
1 parent 0641877 commit 04d58d0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 106 deletions.
1 change: 1 addition & 0 deletions packages/vscode/release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
npmPublish: false,
},
],
['./tools/publish.js', {}],
[
'@semantic-release/github',
{
Expand Down
14 changes: 14 additions & 0 deletions packages/vscode/tools/publish.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const path = require('path');
const shell = require('shelljs');

const pathToPackage = pkg => path.join(__dirname, '..', '..', 'packages', pkg);

module.exports = {
publish: () => {
const vscode = {
cwd: pathToPackage('vscode'),
};
shell.exec('npx vsce package --yarn', vscode);
shell.exec(`npx vsce publish -p ${process.env.VSCE_TOKEN} --yarn`, vscode);
},
};
106 changes: 0 additions & 106 deletions tools/release/deploy.js

This file was deleted.

0 comments on commit 04d58d0

Please sign in to comment.