Initial TrueGrowth source import
This commit is contained in:
17
scripts/release-version.js
Normal file
17
scripts/release-version.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const { execSync } = require('child_process');
|
||||
|
||||
// Run nx release version
|
||||
execSync('nx release version', { stdio: 'inherit' });
|
||||
|
||||
// Get the new version from react-text/package.json
|
||||
const version = require('../packages/react-text/package.json').version;
|
||||
|
||||
// Run nx release changelog
|
||||
execSync(`nx release changelog ${version}`, { stdio: 'inherit' });
|
||||
|
||||
// Commit all changes with a single commit message
|
||||
execSync('git add .', { stdio: 'inherit' });
|
||||
execSync(`git commit -m "chore(release): publish ${version}"`, { stdio: 'inherit' });
|
||||
|
||||
// Create a Git tag for the release
|
||||
execSync(`git tag -a v${version} -m "v${version}"`, { stdio: 'inherit' });
|
||||
Reference in New Issue
Block a user