Raygun for Node is published on npmjs.com as raygun.
This package follows semantic versioning.
Given a version number MAJOR.MINOR.PATCH (x.y.z), increment the:
- MAJOR version when you make incompatible changes
- MINOR version when you add functionality in a backward compatible manner
- PATCH version when you make backward compatible bug fixes
To learn more about semantic versioning check: https://semver.org/
Create a new branch named release/x.y.z
where x.y.z is the Major, Minor and Patch release numbers.
Update the version in the package.json file.
Run npm install to update the version in the package-lock.json.
Add a new entry in the CHANGELOG.md file.
Obtain a list of changes using the following git command:
git log --pretty=format:"- %s (%as)"
Run a publish dry-run to ensure no errors appear:
npm publish --dry-run
Commit all the changes into a commit with the message chore: Release x.y.z
where x.y.z is the Major, Minor and Patch release numbers.
Then push the branch and open a new PR, ask the team to review it.
Once the PR has been approved, you can publish the provider.
Run the publish command without dry-run.
You will need an account in npmjs.com to publish,
as well as being part of the Raygun organization.
npm publish
Now the package is available for customers.
With the PR approved and the package published,
squash and merge the PR into develop.
Go to https://github.com/MindscapeHQ/raygun4node/releases and create a new Release.
GitHub will create a tag for you, you don't need to create the tag manually.
You can also generate the release notes automatically.
Once the release process is completed, it would be good to merge develop into master.
Create a PR manually where develop merges into master
or by following this link: https://github.com/MindscapeHQ/raygun4node/compare/develop...master
You can name the PR chore: merge to master.
Then ask for approval by the Raygun team.
Do not squash this PR, instead, just merge. That will create a merge commit.