Skip to content

Commit a23376e

Browse files
rix0rrrmrgraingithub-actions
authored
chore(adc-publishing): build standalone release in 'release' workflow (#119)
`release` doesn't call `build`, but has its own implementation of building instead. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license --------- Signed-off-by: github-actions <[email protected]> Co-authored-by: Momo Kornher <[email protected]> Co-authored-by: github-actions <[email protected]>
1 parent 99f54f6 commit a23376e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.projen/tasks.json

+8-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projenrc/adc-publishing.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ import { JobPermission } from 'projen/lib/github/workflows-model';
55
export class AdcPublishing extends Component {
66
constructor(private readonly project_: Monorepo) {
77
super(project_);
8-
9-
this.project.tasks.tryFind('build')?.exec('tsx projenrc/build-standalone-zip.task.ts');
108
}
119

1210
public preSynthesize() {
11+
for (const taskName of ['build', 'release']) {
12+
this.project.tasks.tryFind(taskName)?.exec('tsx projenrc/build-standalone-zip.task.ts');
13+
}
14+
1315
const releaseWf = this.project_.github?.tryFindWorkflow('release');
1416
if (!releaseWf) {
1517
throw new Error('Could not find release workflow');

0 commit comments

Comments
 (0)