Skip to content

Commit

Permalink
ci: 3
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolLoong committed Nov 8, 2024
1 parent 230a6f1 commit 8e57fbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ const commitMessage = process.env.GITHUB_EVENT_HEAD_COMMIT_MESSAGE;
const target = process.env.TARGET;

const execSync = require('child_process').execSync;
console.log("GITHUB_EVENT_HEAD_COMMIT_MESSAGE = " + commitMessage);
if (commitMessage.includes('-pre')) {
console.log("PreRelease jsonui_lsp " + target)
execSync('npx vsce package --pre-release --target ' + target + ' --no-dependencies', { stdio: 'inherit' });
} else {
console.log("Release jsonui_lsp " + target)
execSync('npx vsce package --target ' + target + ' --no-dependencies', { stdio: 'inherit' });
}

0 comments on commit 8e57fbc

Please sign in to comment.