File size: 661 Bytes
60f878e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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' });