-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd6dafc
commit beb99dd
Showing
3 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const { execSync } = require('child_process') | ||
const path = require('path') | ||
const fs = require('fs') | ||
|
||
// Get next version without bumping | ||
const nextVersion = execSync('npx standard-version --dry-run --skip.bump') | ||
.toString() | ||
.match(/bumping version in package\.json from .* to (.*)/)[1] | ||
.trim() | ||
|
||
// Build webpack with new version to update README | ||
execSync('webpack --config scripts/webpack.config.js', { | ||
env: { ...process.env, NEXT_VERSION: nextVersion } | ||
}) | ||
|
||
// Run standard-version for real | ||
const args = process.argv.includes('--first-release') ? '--first-release' : '' | ||
execSync(`npx standard-version ${args} -a -s`, { stdio: 'inherit' }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters