Skip to content

Commit

Permalink
fix: replace yarn1 with npm in CI
Browse files Browse the repository at this point in the history
yarn1 appears to struggle with a dependency "string-width".
replacing with npm as it's only used in CI for one specific dependency
Issue reported in multiple places such as:
yarnpkg/yarn#8994
storybookjs/storybook#22431
  • Loading branch information
oscarmuhr committed Jan 2, 2024
1 parent 8eaeb53 commit 830f19b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .sage/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ func GenerateApiDoc(ctx context.Context) error {
}

func installRapiPdfCli(ctx context.Context) error {
if err := sg.Command(ctx, "yarn", "global", "add", "node-gyp").Run(); err != nil {
return err
}
cmd := sg.Command(ctx, "yarn", "global", "add", "@kingjan1999/rapipdf-cli")
cmd := sg.Command(ctx, "npm", "--global", "install", "@kingjan1999/rapipdf-cli")
return cmd.Run()
}

Expand Down

0 comments on commit 830f19b

Please sign in to comment.