@mdn/browser-compat-dataProject owners publish new releases of @mdn/browser-compat-data on npm, usually every Tuesday and Friday. MDN staff then deploy the package to the MDN site, usually 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_TOKEN is set in the repository secrets. If the token is invalidated or unset, a member of the @mdn organization on npm must create a new token and add it to the repository's secrets.main branch checked out.gh CLI installed.jq installed.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.
vX.Y.Z where X.Y.Z in the version number in package.json.RELEASE_NOTES.md, after (but not including) the release date.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-data on 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! 🎉