-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): Use conventional commit message for release PR (#91)
* chore(ci): Use conventional commit message for release PR * fix: Set correct PAT on PR
- Loading branch information
1 parent
f8b6471
commit 820d80b
Showing
2 changed files
with
25 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const fs = require('fs'); | ||
|
||
const releasePlan = fs.readFileSync('.release-plan.json', 'utf8'); | ||
const releasePlanJson = JSON.parse(releasePlan); | ||
|
||
const newEmberVersion = releasePlanJson.solution['@nrg-ui/ember'].newVersion; | ||
const newCssVersion = releasePlanJson.solution['@nrg-ui/css'].newVersion; | ||
|
||
const updatedVersions = []; | ||
if (newEmberVersion) { | ||
updatedVersions.push(`@nrg-ui/ember@${newEmberVersion}`); | ||
} | ||
if (newCssVersion) { | ||
updatedVersions.push(`@nrg-ui/css@${newCssVersion}`); | ||
} | ||
|
||
const commitMessage = `COMMIT_MESSAGE=release: ${updatedVersions.join(', ')}`; | ||
console.log(commitMessage); |
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