+
Skip to content

Fix Yarn not found in CI by installing it manually in shared workflow #133

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

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

kb-typeform
Copy link
Contributor

@kb-typeform kb-typeform commented Jun 16, 2025

This PR updates the Generate persisted operations shared workflow to explicitly install the required Yarn version (1.22.22) via npm instead of relying on asdf and .tool-versions.

🔧 Changes:
• Added npm install -g yarn@1.22.22 after setting up Node.js in the workflow.

🐛 Problem:

Workflows were failing on some repositories with the following error:

No preset version installed for command yarn
Please install a version by running:
asdf install yarn 1.22.22

This happened because .tool-versions was present in some repos, triggering asdf version management, but the required Yarn version wasn’t installed on the CI runner.

✅ Solution:

Installing Yarn directly with npm ensures the correct version is available regardless of .tool-versions or asdf setup.

This change avoids inconsistent behavior across repositories and ensures the workflow runs reliably everywhere.

Copy link

gitstream-cm bot commented Jun 16, 2025

This PR is missing a Jira ticket reference in the title or description.
Please add a Jira ticket reference to the title or description of this PR.

Copy link

gitstream-cm bot commented Jun 16, 2025

🥷 Code experts: no user but you matched threshold 10

kb-typeform has most 👩‍💻 activity in the files.
kb-typeform has most 🧠 knowledge in the files.

See details

.github/workflows/graphql-generate-persisted-operations.yml

Activity based on git-commit:

kb-typeform
JUN
MAY 129 additions & 24 deletions
APR
MAR
FEB
JAN

Knowledge based on git-blame:
kb-typeform: 100%

To learn more about /:\ gitStream - Visit our Docs

1 similar comment
Copy link

gitstream-cm bot commented Jun 16, 2025

🥷 Code experts: no user but you matched threshold 10

kb-typeform has most 👩‍💻 activity in the files.
kb-typeform has most 🧠 knowledge in the files.

See details

.github/workflows/graphql-generate-persisted-operations.yml

Activity based on git-commit:

kb-typeform
JUN
MAY 129 additions & 24 deletions
APR
MAR
FEB
JAN

Knowledge based on git-blame:
kb-typeform: 100%

To learn more about /:\ gitStream - Visit our Docs

@kb-typeform kb-typeform merged commit 4835d6b into main Jun 17, 2025
8 checks passed
@kb-typeform kb-typeform deleted the PLT-1044-persisted-operations-pt2 branch June 17, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载