Skip to content

Commit

Permalink
fix: add environment variable CI to package-js job
Browse files Browse the repository at this point in the history
  • Loading branch information
gmeligio committed Jun 2, 2024
1 parent de32e15 commit a3a3500
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/patch/JsiiProjectPatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ export class JsiiProjectPatch extends JsiiProject {

// Override build.yml
const buildWorkflow = this.github!.tryFindWorkflow('build')!;


buildWorkflow?.file?.addOverride('jobs.package-js.env.CI',"true");
// Move pnpm/action-setup before actions/setup-node to fix error "No pnpm version is specified."
buildWorkflow?.file?.addOverride('jobs.package-js.steps.0.name', 'Setup pnpm');
buildWorkflow?.file?.addOverride('jobs.package-js.steps.0.uses', this.github?.actions.get('pnpm/action-setup'));
Expand Down

0 comments on commit a3a3500

Please sign in to comment.