在 Github Action 中通过命令行使用 vsce 会抛出无效的发布者名称错误

发布于 2025-01-14 11:42:04 字数 284 浏览 4 评论 0原文

我们有一个现有的扩展,它已经在 VS Code 市场上。 我正在尝试使用 Github Actions 并执行此命令来自动发布...

vscepublish -p ${{secrets.VSCODE_PAT }}

当命令执行时,我收到此错误:

错误发布者名称“Wilderness Labs”无效。预计 发布者的标识符,而不是其易于理解的名称。

vscode 文档在这种情况下并没有真正的帮助。有什么想法/建议吗?

We have an existing extension that is already in the VS Code market place.
I'm trying to automate publishing by using Github Actions and executing this command...

vsce publish -p ${{ secrets.VSCODE_PAT }}

When the command executes I'm getting this error:

ERROR Invalid publisher name 'Wilderness Labs'. Expected the
identifier of a publisher, not its human-friendly name.

The vscode documentation doesn't really help in this situation. Any ideas/suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

残龙傲雪 2025-01-21 11:42:04

发布者名称不能是带有空格的字符串文字。正如 @Lex 所提到的,它需要是像 WildernessLabs 或 Wilderness-labs 之类的东西,或者任何适合您自己的组织的东西。

The publisher name MUST NOT be a string literal with spaces. As mentioned by @Lex it needs to be a something like WildernessLabs or wilderness-labs or whatever it is for your own organisation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文