Skip to content

Add support for yarn 4 #554

@xnyo

Description

@xnyo

https://github.com/grafana/logs-drilldown/actions/runs/21841792325/job/63027761827?pr=1742

https://raintank-corp.slack.com/archives/C01C4K8DETW/p1770743718380439

Run grafana/plugin-ci-workflows/actions/internal/plugins/frontend@ci-cd-workflows/v4.0.0
  with:
    plugin-directory: .
    npm-registry-auth: false
  env:
    DEFAULT_NODE_VERSION: 22
    DEFAULT_GO_VERSION: 1.24
    DEFAULT_GOLANGCI_LINT_VERSION: 1.64.8
    DEFAULT_TRUFFLEHOG_VERSION: 3.90.6
    GCS_ARTIFACTS_BUCKET: integration-artifacts
    VAULT_INSTANCE: ops
    GOTOOLCHAIN: local
Run /opt/actions-runner/_work/_actions/grafana/plugin-ci-workflows/ci-cd-workflows/v4.0.0/actions/internal/plugins/frontend/pm.sh install
  /opt/actions-runner/_work/_actions/grafana/plugin-ci-workflows/ci-cd-workflows/v4.0.0/actions/internal/plugins/frontend/pm.sh install
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    DEFAULT_NODE_VERSION: 22
    DEFAULT_GO_VERSION: 1.24
    DEFAULT_GOLANGCI_LINT_VERSION: 1.64.8
    DEFAULT_TRUFFLEHOG_VERSION: 3.90.6
    GCS_ARTIFACTS_BUCKET: integration-artifacts
    VAULT_INSTANCE: ops
    GOTOOLCHAIN: local
    PACKAGE_MANAGER: 
Running 'install' with yarn...
error This project's package.json defines "packageManager": "yarn@4.5.0". However the current global version of Yarn is 1.22.22.

Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from 16.9 and 14.19.
Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    📅 Planned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions