Skip to content

Commit ab1536e

Browse files
committed
not plugin contract
1 parent f58f45a commit ab1536e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/build-and-integ.yml

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

.projenrc.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ESLINT_RULES } from './projenrc/eslint';
44
import { JsiiBuild } from './projenrc/jsii';
55
import { BundleCli } from './projenrc/bundle';
66
import { Stability } from 'projen/lib/cdk';
7+
import { ReleaseTrigger } from 'projen/lib/release';
78

89
// 5.7 sometimes gives a weird error in `ts-jest` in `@aws-cdk/cli-lib-alpha`
910
// https://github.com/microsoft/TypeScript/issues/60159
@@ -109,6 +110,9 @@ function sharedJestConfig(): pj.javascript.JestConfigOptions {
109110
};
110111
}
111112

113+
const workflowDispatchOnly = ReleaseTrigger.scheduled({ schedule: 'xxx' });
114+
(workflowDispatchOnly as any).schedule = undefined;
115+
112116
const repo = configureProject(
113117
new yarn.Monorepo({
114118
projenrcTs: true,
@@ -153,9 +157,7 @@ const repo = configureProject(
153157
release: true,
154158
releaseOptions: {
155159
publishToNpm: true,
156-
releaseTrigger: pj.release.ReleaseTrigger.scheduled({
157-
schedule: '11 8 * * 5',
158-
}),
160+
releaseTrigger: workflowDispatchOnly,
159161
},
160162

161163
githubOptions: {

0 commit comments

Comments
 (0)