Skip to content

Commit

Permalink
fix: always upgrade to latest projen [CLK-471688]
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlewis92 committed Feb 20, 2024
1 parent 6fd195b commit 7f958c4
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/update-projen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export module updateProjen {
pullRequestTitle: 'upgrade projen',
semanticCommit: 'fix', // let's get this into the changelog.
taskName: UPDATE_PROJEN_PR_LABEL,
// Defaults to minor otherwise which means if we ship a breaking change to projen it never gets propagated out
target: 'latest',
workflowOptions: {
schedule: UpgradeDependenciesSchedule.MONTHLY,
labels: [UPDATE_PROJEN_PR_LABEL],
Expand Down
91 changes: 90 additions & 1 deletion test/__snapshots__/update-projen.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/update-projen.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ describe('addAddToProjectWorkflowYml', () => {
updateProjen.addWorkflows(project);
const synth = Testing.synth(project);
expect(synth['.github/workflows/add-to-update-projen-project.yml']).toMatchSnapshot();
expect(synth['.github/workflows/upgrade-projen-main.yml']).toMatchSnapshot();
expect(synth['.github/workflows/update-projen-main.yml']).toMatchSnapshot();
});
});

0 comments on commit 7f958c4

Please sign in to comment.