Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CI): replace yarn1 with npm when generating PDF docs #221

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

oscarmuhr
Copy link
Contributor

@oscarmuhr oscarmuhr commented Jan 2, 2024

yarn1 appears to struggle with a dependency "string-width". To prevent CI from breaking, this PR replaces the use of yarn with npm when generating documentation PDF.
Issue reported in multiple places such as:
yarnpkg/yarn#8994
storybookjs/storybook#22431

TRA-772

@oscarmuhr oscarmuhr requested a review from odsod as a code owner January 2, 2024 12:57
@oscarmuhr oscarmuhr requested a review from a team January 2, 2024 12:57
return err
}
cmd := sg.Command(ctx, "yarn", "global", "add", "@kingjan1999/rapipdf-cli")
cmd := sg.Command(ctx, "npm", "--global", "install", "@kingjan1999/rapipdf-cli")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment here in case someone wonders why we use npm instead of yarn?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, added it and referencing back to this PR too.

@oscarmuhr oscarmuhr force-pushed the replace-yarn-for-npm branch 2 times, most recently from 7d1fb82 to a377264 Compare January 2, 2024 13:02
yarn1 appears to struggle with a dependency "string-width".
To prevent CI from breaking, this PR replaces the use of yarn with npm
when generating documentation PDF.
Issue reported in multiple places such as:
yarnpkg/yarn#8994
storybookjs/storybook#22431
@oscarmuhr oscarmuhr merged commit 34aed9d into master Jan 2, 2024
1 check passed
@oscarmuhr oscarmuhr deleted the replace-yarn-for-npm branch January 2, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants