Skip to content

Commit

Permalink
Merge pull request #63 from golemfactory/feature/JST-500/Create-new-p…
Browse files Browse the repository at this point in the history
…roject-during-build

build: create new project during CI build process
  • Loading branch information
pgrzy-golem authored Oct 20, 2023
2 parents 48ba748 + 93b3b51 commit fa4493f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ jobs:
npm run build
npm ln
golem-sdk --version
golem-sdk new test-app -t js-node -d 'Test App' -a 'Golem' -v '1.0.0'
cd test-app/node_modules
2 changes: 1 addition & 1 deletion src/new/new.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function installDependencies(options: NewOptions, projectPath: string) {
const pkg = getPackageManager();
const args = pkg.name === "yarn" ? [] : ["install"];

const result = spawnSync(pkg.name, args, { cwd: projectPath, stdio: "inherit" });
const result = spawnSync(pkg.name, args, { cwd: projectPath, stdio: "inherit", shell: true });

if (result.error) {
console.error(`Error: There was a problem installing dependencies: ${result.error.message}`);
Expand Down

0 comments on commit fa4493f

Please sign in to comment.