Skip to content

Bug: create-plugin + release.yml The engine "node" is incompatible with this module. Expected version ">=22". Got "20.18.1" #43

Open
@L2D2Grafana

Description

@L2D2Grafana

What happened?

Pushed a git tag and the release.yml failed with the following error.

release.yml job

Run /home/runner/work/_actions/grafana/plugin-actions/release/build-plugin/pm.sh install
Running 'install' with yarn...
yarn install v1.22.22
[1/5] Validating package.json...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=22". Got "20.18.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Reproduce

  • scaffold app with create-plugin latest
  • run npm version prerelease
  • git push origin v0.0.1-0 to trigger the job
  • release.yml fails

Fix

Downgrade engine in package.json

 "engines": {
    "node": ">=20.0.0"
  },

create plugin also specifies to use grafana/plugin-actions/build-plugin@release however this does not create a latest package or give output data.

updated to grafana/plugin-actions/build-plugin@main and added latest creation with

      - id: 'create-latest'
        run: cp ${{ steps.build-release.outputs.archive }} ${{ steps.metadata.outputs.archive }}

It's confusing whether or not we should use build-plugin@main vs build-plugin@release internally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🧑‍💻 In development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions