Skip to content

Commit e86affd

Browse files
committed
ci: refactor upgrade steps and also upgrade examples
1 parent f1beb5b commit e86affd

File tree

3 files changed

+56
-2
lines changed

3 files changed

+56
-2
lines changed

.projen/tasks.json

Lines changed: 33 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const project = new awscdk.AwsCdkTypeScriptApp({
2929
},
3030
scripts: {
3131
//postinstall: 'npm ci --prefix example/cdk && npm ci --prefix example/serverless',
32-
'post-upgrade': 'npx projen upgrade:ci:py',
32+
'post-upgrade': 'npx projen upgrade:subprojects',
3333
},
3434
release: true,
3535
releaseTrigger: ReleaseTrigger.scheduled({ schedule: '0 0 1 1 *' }),
@@ -232,4 +232,23 @@ new NodeProject({
232232
licensed: false,
233233
});
234234

235+
project.addTask('upgrade:ci:node', {
236+
steps: [
237+
{
238+
spawn: 'upgrade',
239+
cwd: 'continous-integration/lambda-handlers/node',
240+
},
241+
],
242+
});
243+
project.addTask('upgrade:example', {
244+
steps: [
245+
{
246+
spawn: 'upgrade',
247+
cwd: 'example/cdk',
248+
},
249+
],
250+
});
251+
project.addTask('upgrade:subprojects', {
252+
steps: [{ spawn: 'upgrade:ci:node' }, { spawn: 'upgrade:ci:py' }, { spawn: 'upgrade:ci:node' }],
253+
});
235254
project.synth();

package.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)