npm version patch递增版本号并创建 Git Commit和Tag
git push origin 0.xx-stable --follow-tags(将
- 确保当前 master 分支在 Circle, Travis 和 AppVeyor 上是绿色的。
- Ensure you are on
masterand your local copy of Yarn is up-to-date
- Create the
masterto the next minor version (eg. after releasing
0.29.0, master will be bumped to
- Create the
Once an RC has been tested by the community for a while and all major bugs have been ironed out, it can be marked as stable. To do this, go to https://release.yarnpkg.com/ and click the “Promote RC to stable” button.
Note: There is a whitelist for the users that are able to access this page. If a maintainer is missing from the whitelist, you can modify it here.
Sometimes things go wrong. Here’s how to debug some common issues:
Check the GitHub release for any missing artifacts. The release scripts do not bump the version number on the site until both the Linux and the Windows artifacts have been attached to the release.
Check the yarn-version Jenkins build job and see whether it has failed.
Most of the release has been automated and is fairly straightforward. 通常来说，您只需阅读到这里。 However, if the release tooling ever breaks (or if you like doing things the hard way), you can manually perform the release steps.
yarn build-dist && yarn build-debto build the release tarball, Debian package, and RPM package
yarn build-dist && yarn build-win-installeron Windows to build the Windows installer
.jsartifacts: sh gpg -u 9D41F3C3 –armor –detach-sign yarn-0.xx.xx.tar.gz 这将生成
.ascfiles that you should also attach to the release
Authenticode sign the
.msiartifacts: sh osslsigncode sign -t http://timestamp.digicert.com -n “Yarn Installer” -i https://yarnpkg.com/ -pkcs12 yarn-20161122.pfx -readpass yarn-20161122.key -h sha1 -in yarn-0.xx.xx-unsigned.msi -out yarn-0.xx.xx.msi osslsigncode sign -t http://timestamp.digicert.com -n “Yarn Installer” -i https://yarnpkg.com/ -pkcs12 yarn-20161122.pfx -readpass yarn-20161122.key -nest -h sha2 -in yarn-0.xx.xx.msi -out yarn-0.xx.xx.msi
- Create new release on GitHub, and attach all artifacts. For the MSI, ensure you attach the signed version!
- Publish the tarball to npm:
npm publish ./artifacts/yarn-v0.xx.xx.tar.gz
- 执行下面的 post-release 步骤
- 修改 GitHub 发布，将其标为稳定版
npm dist-tag add email@example.com latest（其中
- 运行下面的 post-release 步骤