Skip to content

Commit

Permalink
use np instead of custom scripts and change log #89
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Jan 20, 2021
1 parent a92e268 commit e145077
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
8 changes: 1 addition & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@

Here's is a combined todo/done list. You can see what todos are planned for the upcoming release.

## master

Released: TBA.

[Diff](https://github.com/transloadit/node-sdk/compare/v2.0.10...master).

- [ ]
See [GitHub releases](https://github.com/transloadit/node-sdk/releases) for change log from this point on

## v2.0.10

Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,16 +390,17 @@ We'd be happy to accept pull requests. If you plan on working on something big,

### Testing

Check your sources for linting errors via `npm run lint`, and unit tests, and run them via `npm run test`
Check your sources for linting errors via `npm run lint`, and unit tests, and run them via `npm test`

### Releasing

Releasing a new version to npmjs.org can be done via `npm run release:major` (or minor / patch, depending on the [semantic versioning](http://semver.org/) impact of your changes). This will automatically:
1. Install [np](https://github.com/sindresorhus/np): `npm i -g np`
2. Wait for [tests to succeed](https://github.com/transloadit/node-sdk/actions).
3. Run `np` and follow instructions.
4. When successful add [release notes](https://github.com/transloadit/node-sdk/releases).

- Bump the version inside the `package.json`
- Save a release commit with the updated version in Git
- Push a tag to Github
- Publish to npmjs.org
### Change log
See [Releases](https://github.com/transloadit/node-sdk/releases)

### Convenience

Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@
"fix": "eslint . --fix",
"lint": "eslint .",
"next:update": "next-update --keep true --tldr",
"release:major": "env SEMANTIC=major npm run release",
"release:minor": "env SEMANTIC=minor npm run release",
"release:patch": "env SEMANTIC=patch npm run release",
"upgrade:modules": "npm-check-updates -u --semverLevel major && yarn && npm run test",
"release": "npm version ${SEMANTIC:-patch} -m \"Release %s\" && git push && git push --tags && npm publish",
"test-unit": "jest --coverage ./test/unit",
"test-integration": "jest ./test/integration",
"tsd": "tsd",
Expand Down

0 comments on commit e145077

Please sign in to comment.