mirror of
https://github.com/BradGroux/veritas-kanban.git
synced 2026-08-28 02:44:59 +00:00
Fix desktop artifact CI packaging
This commit is contained in:
parent
6b6dd234cd
commit
4d6fb59a83
2 changed files with 3 additions and 11 deletions
|
|
@ -2,6 +2,7 @@
|
|||
"name": "@veritas-kanban/desktop",
|
||||
"version": "4.3.2",
|
||||
"private": true,
|
||||
"homepage": "https://github.com/BradGroux/veritas-kanban",
|
||||
"description": "Veritas Kanban native desktop shell",
|
||||
"author": "Brad Groux <brad@digitalmeld.io>",
|
||||
"license": "MIT",
|
||||
|
|
|
|||
|
|
@ -11,14 +11,11 @@ const stagingDir = path.join(desktopDir, '.desktop-release');
|
|||
const serverStage = path.join(stagingDir, 'server');
|
||||
const webStage = path.join(stagingDir, 'web');
|
||||
|
||||
function pnpmCommand() {
|
||||
return process.platform === 'win32' ? 'pnpm.cmd' : 'pnpm';
|
||||
}
|
||||
|
||||
function run(command, args) {
|
||||
const result = spawnSync(command, args, {
|
||||
cwd: rootDir,
|
||||
encoding: 'utf8',
|
||||
shell: process.platform === 'win32',
|
||||
stdio: 'inherit',
|
||||
});
|
||||
|
||||
|
|
@ -55,13 +52,7 @@ async function main() {
|
|||
await rm(stagingDir, { recursive: true, force: true });
|
||||
await mkdir(stagingDir, { recursive: true });
|
||||
|
||||
run(pnpmCommand(), [
|
||||
'--filter',
|
||||
'@veritas-kanban/server',
|
||||
'deploy',
|
||||
'--prod',
|
||||
serverStage,
|
||||
]);
|
||||
run('pnpm', ['--filter', '@veritas-kanban/server', 'deploy', '--prod', serverStage]);
|
||||
await pruneServerDeploy();
|
||||
|
||||
await mkdir(webStage, { recursive: true });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue