mirror of
https://github.com/iv-org/videojs-vtt-thumbnails.git
synced 2024-10-01 03:05:36 -04:00
11 lines
350 B
JavaScript
11 lines
350 B
JavaScript
|
const execSync = require('child_process').execSync;
|
||
|
const path = require('path');
|
||
|
const semver = require('semver');
|
||
|
const pkg = require('../package.json');
|
||
|
|
||
|
if (!semver.prerelease(pkg.version)) {
|
||
|
process.chdir(path.resolve(__dirname, '..'));
|
||
|
execSync('conventional-changelog -p videojs -i CHANGELOG.md -s');
|
||
|
execSync('git add CHANGELOG.md');
|
||
|
}
|