2.9 KiB
Releasing a new version of Primer CSS 🎉
In this repo
-
Check off all of the boxes in your release PR.
-
Test your changes with the latest release candidate version in github/github.
-
Once the release PR is approved and you've done necessary testing, merge it. After tests run, the site will be deployed and
@primer/css
will be published with your changes. -
Create a new release branch for the next release from
master
and name itrelease-<version>
. Please use the following template for the PR description, linking to the relevant issues and/or pull requests for each change, and removing irrelevant headings:# Primer [Major|Minor|Patch] Release Version: 📦 **0.0.0** Approximate release date: 📆 DD/MM/YY ### :boom: Breaking Change - [ ] Description # ### :rocket: Enhancement - [ ] Description # ### :bug: Bug Fix - [ ] Description # ### :nail_care: Polish - [ ] Description # ### :memo: Documentation - [ ] Description # ### :house: Internal - [ ] Description # ---- ### Ship checklist - [ ] Update `CHANGELOG.md` - [ ] Increment version in `package.json` with `npm version` - [ ] [Create a new release](https://github.com/primer/css/releases/new) - [ ] [Update github/github](https://github.com/primer/css/blob/master/RELEASING.md#in-githubgithub) - [ ] Create a new pull request for the next release /cc @primer/ds-core
-
Wait for your checks to pass, and take note of the version that primer/publish lists in your status checks.
ProTip: The release candidate version will always be
<version>-rc.<sha>
, where<version>
comes from the branch name and<sha>
is the 7-character commit SHA.
In github/github
:
-
Create a new branch.
-
Update the Primer CSS version to the published release candidate with:
bin/npm install @primer/css@<version>-rc.<sha>
Then commit and push the changes to
package.json
,package-lock.json
, andvendor/npm
. -
If you need to make changes to github/github due to the Primer release, do them in a branch and merge that into your release branch after testing.
-
Add or re-request reviewers and fix any breaking tests.
-
Test on review-lab.
-
Publish
@primer/css
to thelatest
dist-tag by merging the release branch and waiting for primer/publish to finish. -
Install the latest published version with:
bin/npm install @primer/css@<version>
Then commit and push the changes to
package.json
,package-lock.json
, andvendor/npm
. -
Fix any breaking tests.
-
Deploy! 🚀
Publish the release
-
Create a new release with tag
v<version>
. -
Copy the changes from the CHANGELOG and paste them into the release notes.
-
Publish 🎉