Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release npm as latest #52

Closed
akabekobeko opened this issue Jan 11, 2021 · 2 comments
Closed

Release npm as latest #52

akabekobeko opened this issue Jan 11, 2021 · 2 comments
Assignees
Milestone

Comments

@akabekobeko
Copy link
Member

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

  • latest is stopped at v1.0.0-alpha.6.
  • End-Users install with the latest version, so bug reports are given with older versions.
  • Since the version number clearly states that it is alpha, the user can understand the intention without using the next tag of npm.
@akabekobeko
Copy link
Member Author

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

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

  • @next の代わりに @alpha がつく
  • v1.0.0-alpha.12@alpha としてリリースされた

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

akabekobeko added a commit that referenced this issue Jan 11, 2021
akabekobeko added a commit that referenced this issue Jan 11, 2021
#52 Explicitly specify the latest in the release-it tag to make it pr…
@akabekobeko
Copy link
Member Author

成功したようだ。

$ 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 する。

@akabekobeko akabekobeko added this to the v1.0.0 milestone Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant