-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update projen version as part of upgrade workflow (#695)
Adds a task to run as part of the upgrade-mainline workflow which updates the projen version such that PDK and its vended projects all depend on the same projen version.
- Loading branch information
Showing
6 changed files
with
36 additions
and
0 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,15 @@ | ||
import * as ncu from "npm-check-updates"; | ||
import * as fs from "fs"; | ||
import * as path from "path"; | ||
|
||
(async () => { | ||
// Get the latest minor version update of projen | ||
const { projen } = await ncu.run({ | ||
jsonUpgraded: true, | ||
target: "minor", | ||
filter: "projen", | ||
}) as any; | ||
|
||
// Write the projen version to projen-version.ts | ||
fs.writeFileSync(path.resolve(__dirname, "../src/components/projen-version.ts"), `export default "^${projen}";`); | ||
})(); |
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