Skip to content

Commit

Permalink
Merge pull request #1006 from chromaui/todd/fix-exec-build
Browse files Browse the repository at this point in the history
Ensure GitHub Action runs in specified version of node
  • Loading branch information
tevanoff authored Jun 12, 2024
2 parents a1fb89f + 710c589 commit 022aef3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node-src/tasks/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ export const buildStorybook = async (ctx: Context) => {

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

0 comments on commit 022aef3

Please sign in to comment.