后台 - 从模板创建插件给发布者错误

Backstage - Create plugin from template gives publisher error

我第一次尝试在后台开发一个简单的插件。我以为我安装和配置一切正确

Unable to find a publisher for URL: https://github.com/my_name/my_repo. Please make sure to register this host under an integration in app-config

所以,repo 存在,我的 github 令牌在 .env 文件中,the app-config.yaml 是默认的,其中 github、gitlab、bitbucket 和 azure已经在 integrations 部分中存在和配置。

奇怪的是,错误发生在 plugins/scaffolder-backend/src/scaffolder/stages/publish/publishers.ts 中,如果我尝试打印 this.publisherMap,地图中只存在 bitbucket.org。不知何故,它不会加载 gitlab,github 或其他任何内容。

我做错了什么?

由 运行 后端这样解决:

sudo GITHUB_TOKEN=<token> yarn start