From 7c0377643a6eb89093f293ac7b9545890a15251c Mon Sep 17 00:00:00 2001 From: Benjie Date: Wed, 12 Jun 2024 15:38:00 +0100 Subject: [PATCH] Update release instructions in CONTRIBUTING.md --- .github/CONTRIBUTING.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 58564acdaf..494302de1b 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -93,18 +93,22 @@ then use `npm version patch|minor|major` in order to increment the version in package.json and tag and commit a release. Then `git push && git push --tags` to sync this change with source control. Then `npm publish npmDist` to actually publish the release to NPM. -Once published, add [release notes](https://github.com/graphql/graphql-js/tags). +Once published, add [release notes](https://github.com/graphql/graphql-js/releases). Use [semver](https://semver.org/) to determine which version part to increment. Example for a patch release: ```sh +npm ci npm test npm version patch git push --follow-tags -npm publish npmDist +cd npmDist && npm publish +npm run changelog ``` +Then upload the changelog to [https://github.com/graphql/graphql-js/releases](https://github.com/graphql/graphql-js/releases). + ## License By contributing to graphql-js, you agree that your contributions will be