vivliostyle / vfm

⬇️ Open and extendable Markdown syntax and toolchain.
https://vivliostyle.github.io/vfm/#/vfm
Other
71 stars 12 forks source link

Release npm as latest #52

Closed akabekobeko closed 3 years ago

akabekobeko commented 3 years ago

The current pre-release releases npm with the next tag. However, for the following reasons, stop this and operate only with the latest tag.

akabekobeko commented 3 years ago

42 で色々と試していたが、あちらは開発メモなので以降は本 Issue にて管理する。

42 にて npm-scripts の release:pre から --npm.tag=next を削除して実行したところ、以下のようになった。

引数に --npm.tag を指定しない場合、@latest になると思っていたのだがそうならなかった。おそらく --preRelease を付けているか、バージョンに -alpha が含まれているためだと思われる。この挙動については継続調査するとして、直近で VFM 依存している Vivliostyle パッケージ群のために @latest を更新したいので release-it --preRelease --npm.tag=latest のように明示的に latest を指定してみる。

akabekobeko commented 3 years ago

成功したようだ。

$ npm run release:pre                                                                           [~/Documents/dev/vivliostyle/vfm]

> @vivliostyle/vfm@1.0.0-alpha.13 release:pre
> release-it --preRelease --npm.tag=latest

WARNING Latest version in registry (1.0.0-alpha.6) does not match package.json (1.0.0-alpha.13).

🚀 Let's release @vivliostyle/vfm (currently at 1.0.0-alpha.13)

Changelog:
# [1.0.0-alpha.14](https://github.com/vivliostyle/vfm/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2021-01-11)

Changeset:
M CHANGELOG.md
 M package.json

? Commit (chore: release v1.0.0-alpha.14)? Yes
? Tag (v1.0.0-alpha.14)? Yes
? Push? Yes
? Create a pre-release on GitHub (Release 1.0.0-alpha.14)? Yes
? Publish @vivliostyle/vfm to npm? Yes
🔗 https://github.com/vivliostyle/vfm/releases/tag/v1.0.0-alpha.14
🔗 https://www.npmjs.com/package/@vivliostyle/vfm
🏁 Done (in 40s.)

npm の規定は @latest なのだろうか、release-it の問い合わせは vfm/@latest ではなく単に ? Publish @vivliostyle/vfm to npm? となっていた。これが実行された後に npmjs サイト上と npm i @vivliostyle/vfm した際のバージョンが 1.0.0-alpha.14 になることを確認したので close する。