Skip to content

Commit

Permalink
ci: release from main for most types (#136)
Browse files Browse the repository at this point in the history
Upgrade deps weekly, forcing a weekly release at minimum
  • Loading branch information
mrgrain authored Jul 2, 2023
1 parent fc75d9b commit 860e0bf
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/upgrade-main.yml

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

6 changes: 4 additions & 2 deletions .projen/tasks.json

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

23 changes: 19 additions & 4 deletions .projenrc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { github, javascript, release, TextFile, typescript } from 'projen';
import {
github,
javascript,
ReleasableCommits,
TextFile,
typescript,
} from 'projen';
const project = new typescript.TypeScriptProject({
projenrcTs: true,

Expand Down Expand Up @@ -36,6 +42,11 @@ const project = new typescript.TypeScriptProject({
},
},
},
depsUpgradeOptions: {
workflowOptions: {
schedule: javascript.UpgradeDependenciesSchedule.WEEKLY,
},
},
autoApproveUpgrades: true,
autoApproveOptions: {
allowedUsernames: [
Expand All @@ -49,9 +60,13 @@ const project = new typescript.TypeScriptProject({
releaseToNpm: true,
npmAccess: javascript.NpmAccess.PUBLIC,
defaultReleaseBranch: 'main',
releaseTrigger: release.ReleaseTrigger.scheduled({
schedule: '0 5 1 * *',
}),
releasableCommits: ReleasableCommits.ofType([
'feat',
'fix',
'chore',
'revert',
'docs',
]),

// Dependencies
deps: ['@jsii/spec', '@ungap/structured-clone@~1.0.0'],
Expand Down

0 comments on commit 860e0bf

Please sign in to comment.