Skip to content

Commit

Permalink
Merge af7dae2 into 5481260
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Jul 15, 2019
2 parents 5481260 + af7dae2 commit f4eef1b
Show file tree
Hide file tree
Showing 5 changed files with 2,110 additions and 2,271 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,3 +442,33 @@ mgit checkout --branch t/foo
## Projects using mgit2

* [CKEditor 5](https://github.com/ckeditor/ckeditor5)

## Releasing package

### Changelog

Before starting the release process, you need to generate the changelog:

```bash
npm run changelog
```

### Publishing

After generating the changelog, you are able to release the package.

First, you need to bump the version:

```bash
npm run release:bump-version
```

You can also use the `--dry-run` option in order to see what this task does.

After bumping the version, you can publish the changes:

```bash
npm run release:publish
```

As in the previous task, the `--dry-run` option is also available.
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,27 @@
],
"main": "index.js",
"dependencies": {
"chalk": "^2.4.1",
"chalk": "^2.4.2",
"cli-table": "^0.3.1",
"generic-pool": "^3.4.2",
"generic-pool": "^3.7.1",
"meow": "^5.0.0",
"minimatch": "^3.0.4",
"minimist": "^1.2.0",
"minimist-options": "^3.0.2",
"shelljs": "^0.8.2",
"upath": "^1.1.0"
"minimist-options": "^4.0.1",
"shelljs": "^0.8.3",
"upath": "^1.1.2"
},
"devDependencies": {
"@ckeditor/ckeditor5-dev-env": "^11.1.1",
"@ckeditor/ckeditor5-dev-lint": "^3.1.4",
"chai": "^4.1.2",
"eslint": "^5.3.0",
"eslint-config-ckeditor5": "^1.0.8",
"husky": "^0.14.3",
"@ckeditor/ckeditor5-dev-env": "^14.1.2",
"chai": "^4.2.0",
"eslint": "^6.0.1",
"eslint-config-ckeditor5": "^2.0.0",
"husky": "^3.0.0",
"istanbul": "^0.4.5",
"lint-staged": "^7.2.0",
"mocha": "^5.2.0",
"lint-staged": "^9.2.0",
"mocha": "^6.1.4",
"mockery": "^2.1.0",
"sinon": "^6.1.4"
"sinon": "^7.3.2"
},
"repository": {
"type": "git",
Expand All @@ -56,7 +55,8 @@
"lint": "eslint --quiet '**/*.js'",
"precommit": "lint-staged",
"changelog": "node ./scripts/changelog.js",
"release": "node ./scripts/release.js"
"release:bump-version": "node ./scripts/bump-version.js",
"release:publish": "node ./scripts/publish.js"
},
"bin": {
"mgit": "./index.js",
Expand Down
7 changes: 6 additions & 1 deletion scripts/release.js → scripts/bump-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@

'use strict';

require( '@ckeditor/ckeditor5-dev-env' ).releaseRepository();
require( '@ckeditor/ckeditor5-dev-env' )
.bumpVersions( {
cwd: process.cwd(),
packages: null,
dryRun: process.argv.includes( '--dry-run' )
} );
15 changes: 15 additions & 0 deletions scripts/publish.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env node

/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/

'use strict';

require( '@ckeditor/ckeditor5-dev-env' )
.releaseSubRepositories( {
cwd: process.cwd(),
packages: null,
dryRun: process.argv.includes( '--dry-run' )
} );
Loading

0 comments on commit f4eef1b

Please sign in to comment.