Skip to content

Commit 35acaf9

Browse files
committed
chore: automatically release every monday
1 parent 68837a4 commit 35acaf9

File tree

7 files changed

+81
-10
lines changed

7 files changed

+81
-10
lines changed

.gitattributes

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

.github/workflows/auto-tag-dev.yml

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

.github/workflows/auto-tag-releases.yml

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

.gitignore

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

.projen/files.json

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

.projenrc.ts

+10-5
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,15 @@ new JsiiCalcFixtures(project);
213213
new BuildWorkflow(project);
214214

215215
// Add the custom release workflow
216-
new ReleaseWorkflow(project).autoTag({
217-
preReleaseId: 'dev',
218-
runName: 'Auto-Tag Prerelease (default branch)',
219-
schedule: '0 0 * * *',
220-
});
216+
new ReleaseWorkflow(project)
217+
.autoTag({
218+
preReleaseId: 'dev',
219+
runName: 'Auto-Tag Prerelease (default branch)',
220+
schedule: '0 0 * * 0,2-6', // Tuesday though sundays at midnight
221+
})
222+
.autoTag({
223+
runName: 'Auto-Tag Release (default branch)',
224+
schedule: '0 0 * * 1', // Mondays at midnight
225+
});
221226

222227
project.synth();

projenrc/release.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,11 @@ export class ReleaseWorkflow {
244244
}
245245

246246
public autoTag(opts: AutoTagWorkflowProps): this {
247-
new AutoTagWorkflow(this.project, `auto-tag-releases${opts.branch ? `-${opts.branch}` : ''}`, opts);
247+
new AutoTagWorkflow(
248+
this.project,
249+
`auto-tag-${opts.preReleaseId ?? 'releases'}${opts.branch ? `-${opts.branch}` : ''}`,
250+
opts,
251+
);
248252
return this;
249253
}
250254
}

0 commit comments

Comments
 (0)