Pulsar 包发布

问题描述 投票:0回答:1

我在 github 上有一个存储库,带有 Pulsar 包。

我将存储库克隆到 PC,并尝试使用

pulsar -p publish minor
发布它,但如果失败并显示消息:

cd language-saturn
pulsar -p publish minor
Welcome to Pulsar!

Before you can publish packages, you'll need an API token.

Visit your account page on pulsar-edit.dev https://web.pulsar-edit.dev/users,
copy the token and paste it below when prompted.

Press [Enter] to open your account page. 
Token> *********************************
Saving token to Keychain ✓
Registering language-saturn ✗
Registering package in phyalexander/language-saturn repository failed: Server Error: From Bad Repo: Error: Unable to locate the tag for 'package.json' version '0.0.0'. Are you sure you published a matching tag?

package.json:

{
  "name": "language-saturn",
  "version": "0.1.0",
  "description": "Saturn language syntax support in Atom/Pulsar",
  "engines": {
    "atom": "*"
  },
  "dependencies": {},
  "repository": {
    "type": "git",
    "url": "https://github.com/phyalexander/language-saturn.git"
  },
  "bugs": {
    "url": "https://github.com/phyalexander/language-saturn/issues"
  },
  "license": "MIT",
  "author": "phyalexander <[email protected]>"
}

github pulsar-editor
1个回答
0
投票

对于这种情况使用

ppm publish
更容易。您可以使用
ppm publish 0.1.0
指定新版本,Github 存储库标签和
package.json
都会在发布过程中自动更新,或者您可以自己创建
v0.1.0
标签,然后使用
ppm publish --tag v0.1.0
指定。

© www.soinside.com 2019 - 2024. All rights reserved.