mirror of
https://github.com/actions/stale.git
synced 2025-12-10 03:57:04 +00:00
* docs(contributing): add information to update the changelog * docs(changelog): add a first draft it needs to contain the new PRs and only contains a not very nice version of the previous release to have an example * chore(release): propose a way to locally generate a release
1.4 KiB
1.4 KiB
Building and testing
Install the dependencies.
$ npm install
Build the typescript and package it for distribution.
$ npm run build && npm run pack
Run the tests ✔️
$ npm test
Run the tests and display only the first failing tests ✔️
$ npm test:only-errors
Run the tests with the watch mode ✔️
$ npm test:watch
Run the linter and fix (almost) every issue for you ✔️
$ npm lint:all:fix
Before creating a PR
Build and quality checks
Build, lint, package and test everything.
$ npm all
Release
Based on standard-version.
Define the new version
You can run npm run release:dry-run to create a dry-run, or you can directly run npm run release to create a new local release.
It will run prerelease beforehand to build and pack everything.
If the prerelease succeeded, a bump of version will happen based on the unreleased commits.
It will:
- Update the package.json version field
- Update the package-lock.json version field
- Update the CHANGELOG.md to include the release notes of the new version
- Create a local tag
- Create a commit
If everything generated seems ok for you, you can push your tag by running git push --follow-tags origin {your-branch-name}.