Project owners publish new releases of @mdn/browser-compat-data on npm.
MDN staff deploy the package to the MDN site.
Usually, this happens every Thursday (MDN never deploys to production on Fridays).
Any project owner (or release designee) can complete the following steps to publish a new version.
The steps in this process assume:
NPM_TOKENis set in the repository secrets. If the token is invalidated or unset, a member of the@mdnorganization on npm must create a new token and add it to the repository's secrets.- You have cloned the mdn/browser-compat-data repository and you have the latest
mainbranch checked out. - You have permissions to merge pull requests and publish releases.
- You have the
ghCLI installed. - You have
jqinstalled.
Releasing a new version of BCD is a two-step process: first, the release script is run to bump version number, generate the changelog, and create a pull request; then, once the pull request is merged, a release on GitHub is performed.
First, run npm run release. This will automatically perform all of the steps needed to release a new version of BCD. If user input is needed, the script will announce as such. Once the script is complete, a pull request to release a new version of BCD will be created from your GitHub account, which can be reviewed and merged.
Once you have gotten the applicable review on your PR, it's time to finish the release process:
-
Merge the pull request created by the script.
-
Start a release on GitHub.
- In the Tag version and Release title fields, enter
vX.Y.ZwhereX.Y.Zin the version number inpackage.json. - In the Describe this release field, paste the release note text from
RELEASE_NOTES.md, after (but not including) the release date.
- In the Tag version and Release title fields, enter
-
Click Publish release to create the tag and trigger the workflow that publishes to npm. Wait for the release GitHub Actions workflow to finish successfully.
-
Check
@mdn/browser-compat-dataon npm to see if the release shows up correctly. Note that this may take a while.
The package is now published and you have finished releasing BCD! 🎉