Open
Description
What happened?
Pushed a git tag and the release.yml failed with the following error.
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
Labels
No labels
Type
Projects
Status
🧑💻 In development