1 | const execSync = require('child_process').execSync;
|
2 | const path = require('path');
|
3 | const semver = require('semver');
|
4 | const pkg = require('../package.json');
|
5 |
|
6 | if (!semver.prerelease(pkg.version)) {
|
7 | process.chdir(path.resolve(__dirname, '..'));
|
8 | execSync('conventional-changelog -p videojs -i CHANGELOG.md -s');
|
9 | execSync('git add CHANGELOG.md');
|
10 | }
|