Skip to content

Package 发布与版本

发布前

bash
apm install
apm-cli package deps check
apm-cli package release --build-only

ANE 推荐:

bash
apm-cli package release --build-only --strict

版本

bash
apm-cli package release
apm-cli package release patch
apm-cli package release minor
apm-cli package release major
apm-cli package release 2.0.0

默认 patch 规则:当前 version 尚无对应 tag 时优先发布当前版本;已有 tag 时才递增 patch。

ANE source package

ANE 默认发布 runtime package。需要额外 authoring source:

bash
apm-cli package release --with-source

runtime airpackage 只包含当前 package 自己的最终 ANE,不把 Core 等 runtime dependency 一起 vendoring 进去。

失败续跑

如果 release 已经创建 tag / GitHub Release,但后续步骤失败:

bash
apm-cli package release 1.2.3 --resume

不要通过换版本绕过一次未完成的发布。