**chore(release): enhance deployment workflows with GitHub release automation**
- Added functionality to auto-generate GitHub releases: - Included `scripts/create-github-release.js` to automate release creation with notes. - Modified `scripts/publish-cli.js` to create GitHub releases after publishing packages. - Updated `package.json` to call the GitHub release script during `deploy` and `deploy:cli` commands. - Introduced `CHANGELOG.md` for both main and CLI packages: - Enabled auto-updating of CHANGELOG.md from GitHub release notes. - Added a new `scripts/update-changelog.js` script to synchronize release details with changelogs. - Ensured `CHANGELOG.md` files are included in the published packages. - Improved documentation visibility by displaying release notes on npmjs.com. This update streamlines the release process, ensuring consistent documentation, and aligns npm releases with corresponding GitHub releases for better transparency.
This commit is contained in:
parent
20c114dd3e
commit
4fb1a29a13
7 changed files with 257 additions and 2 deletions
|
|
@ -63,6 +63,12 @@ try {
|
|||
execSync('npm publish', { stdio: 'inherit', cwd: cliPackageDir })
|
||||
|
||||
console.log('Both packages published successfully!')
|
||||
|
||||
// Step 8: Create GitHub release
|
||||
console.log('Creating GitHub release...')
|
||||
execSync('node scripts/create-github-release.js', { stdio: 'inherit', cwd: rootDir })
|
||||
|
||||
console.log('Deployment complete!')
|
||||
} catch (error) {
|
||||
console.error('Error:', error.message)
|
||||
process.exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue