Toolkit: Deprecate plugin:github-publish command (#57726)

* Toolkit: Deprecate `plugin:github-publish` command

* Remove wrong console log message

* Update link to recommended workflows
This commit is contained in:
Esteban Beltran 2022-10-28 19:44:59 +02:00 committed by GitHub
parent a5c492b033
commit 4abf4d90b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,6 +236,10 @@ export const run = (includeInternalScripts = false) => {
.option('--commitHash <hashKey>', 'Specify the commit hash')
.description('Publish to github')
.action(async (cmd) => {
chalk.yellow.bold(`⚠️ This command is deprecated and will be removed . No further support will be provided. ⚠️`);
console.log(
'We recommend using github actions directly for plugin releasing. You can find an example here: https://github.com/grafana/plugin-tools/tree/main/packages/create-plugin/templates/github/ci/.github/workflows'
);
await execTask(githubPublishTask)({
dryrun: cmd.dryrun,
verbose: cmd.verbose,