UNPKG

350 BJavaScriptView Raw
1const execSync = require('child_process').execSync;
2const path = require('path');
3const semver = require('semver');
4const pkg = require('../package.json');
5
6if (!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}