-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
32cb7f4
commit 402f41d
Showing
2 changed files
with
24 additions
and
23 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 |
---|---|---|
|
@@ -5,9 +5,9 @@ import { EOL } from 'os'; | |
import path from 'path'; | ||
|
||
const ALLOWED_VERSION_TYPES = ['major', 'minor', 'patch']; | ||
const GIT_USER_NAME = process.env.GITHUB_USER || 'Github Action'; | ||
const GIT_USER_NAME = process.env.GITHUB_USER || 'Automated Version Bump'; | ||
const GIT_USER_EMAIL = | ||
process.env.GITHUB_EMAIL || '[email protected]'; | ||
process.env.GITHUB_EMAIL || 'gh-action-bump-version@users.noreply.github.com'; | ||
const WORKSPACE = process.env.GITHUB_WORKSPACE; | ||
const EVENT_PATH = process.env.GITHUB_EVENT_PATH; | ||
const VERSION_TYPE = process.env.VERSION_TYPE; | ||
|
@@ -233,21 +233,14 @@ function logError(error) { | |
newVersion = `${tagPrefix}${newVersion}${tagSuffix}`; | ||
|
||
// Bump the version | ||
await Promise.all( | ||
packages.map(async pkg => { | ||
await runInWorkspace( | ||
'npm', | ||
[ | ||
'version', | ||
'--git-tag-version=false', | ||
'--commit-hooks=false', | ||
'--workspaces-update=false', | ||
newVersion, | ||
], | ||
pkg, | ||
); | ||
}), | ||
); | ||
await runInWorkspace('npm', [ | ||
'version', | ||
'--git-tag-version=false', | ||
'--commit-hooks=false', | ||
'--workspaces', | ||
'--workspaces-update=false', | ||
newVersion, | ||
]); | ||
|
||
// Expose the new version | ||
await runInWorkspace('sh', [ | ||
|