Skip to content

Commit

Permalink
revert this change to the default value
Browse files Browse the repository at this point in the history
When set to true, this ran the commands with the node version set by
the action (node20), not the version set in the workflow.
  • Loading branch information
tevanoff committed Jun 11, 2024
1 parent ba943e8 commit 6fc55b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node-src/tasks/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ export const buildStorybook = async (ctx: Context) => {

const subprocess = execaCommand(ctx.buildCommand, {
stdio: [null, logFile, null],
preferLocal: true,
preferLocal: false, // When true, this will run in the node version set
// by the action (node20), not the version set in the workflow
signal,
env: { CI: '1', NODE_ENV: ctx.env.STORYBOOK_NODE_ENV || 'production' },
});
Expand Down

0 comments on commit 6fc55b5

Please sign in to comment.