Skip to content

Commit

Permalink
chore: update release changelog after tag is created
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Dec 15, 2023
1 parent 453934e commit f80d116
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ async function main() {
step('Updating lockfile...');
await run(`pnpm`, ['install']);

step('Generating changelog...');
await run('pnpm', ['changelog']);

const { stdout } = await run('git', ['diff'], { stdio: 'pipe' });
if (stdout) {
step('Committing changes...');
Expand All @@ -122,10 +119,15 @@ async function main() {
console.log('No changes to commit.');
}

step('Pushing to GitHub...');

const tag = `v${targetVersion}${isNext ? '-next' : ''}`;
await runIfNotDry('git', ['tag', tag]);

step('Generating changelog...');
await run('pnpm', ['changelog']);
await runIfNotDry('git', ['add', '-A']);
await runIfNotDry('git', ['commit', '-m', 'chore: update changelog']);

step('Pushing to GitHub...');
await runIfNotDry('git', ['push', 'upstream', `refs/tags/${tag}`]);
await runIfNotDry('git', ['push', 'upstream', 'main']);

Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file.

## [unreleased]
## [1.9.8-next](https://github.com/vidstack/player/releases/tag/v1.9.8-next) (2023-12-15)

### Bug Fixes

Expand Down

0 comments on commit f80d116

Please sign in to comment.