Skip to content

Commit

Permalink
Update web actions (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Aug 19, 2024
1 parent be63888 commit 15be1a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/react-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ defaults:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [16.x, 18.x, 20.x]

steps:
Expand Down
8 changes: 4 additions & 4 deletions demo/react/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const child_process = require("child_process");
const fs = require("fs");
const path = require("path");

const commands = process.argv.slice(2, 3);
const args = process.argv.slice(2, 3);
const rootDir = path.join(__dirname, "..", "..", "..");

const libDirectory = path.join(__dirname, "..", "src", "lib");
Expand Down Expand Up @@ -37,7 +37,7 @@ fs.writeFileSync(

const command = process.platform === "win32" ? "npx.cmd" : "npx";

child_process.spawn("react-scripts", commands, {
execPath: command,
shell: true
child_process.execSync(`${command} react-scripts ${args}`, {
shell: true,
stdio: 'inherit'
});

0 comments on commit 15be1a4

Please sign in to comment.