Skip to content

Commit

Permalink
fix: build api using api_build_command
Browse files Browse the repository at this point in the history
  • Loading branch information
manekinekko committed Jul 2, 2020
1 parent a48f921 commit 5c42f8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = () => {
`--names api_build`,
`--kill-others-on-fail`,
`-c 'bgYellow.bold'`,
`"npm install --production && ${app_build_command}"`,
`"npm install --production && ${api_build_command}"`,
`--color=always`,
].join(" ");
exec(apiBuildCommand, {
Expand Down
2 changes: 2 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ module.exports.readConfigFile = () => {

const swaYaml = YAML.parse(githubActionContent);
const swaBuildConfig = swaYaml.jobs.build_and_deploy_job.steps.find((step) => step.uses && step.uses.includes("static-web-apps-deploy"));

// extract the user config and set defaults
const {
app_build_command = "npm run build --if-present",
api_build_command = "npm run build --if-present",
Expand Down

0 comments on commit 5c42f8d

Please sign in to comment.