diff --git a/.projen/tasks.json b/.projen/tasks.json index b4eb44e..32cb622 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -32,7 +32,8 @@ "CHANGELOG": "dist/changelog.md", "BUMPFILE": "dist/version.txt", "RELEASETAG": "dist/releasetag.txt", - "RELEASE_TAG_PREFIX": "" + "RELEASE_TAG_PREFIX": "", + "RELEASABLE_COMMITS": "git log --no-merges --oneline $LATEST_TAG..HEAD -E --grep '^(feat|fix){1}(\\([^()[:space:]]+\\))?(!)?:[[:blank:]]+.+'" }, "steps": [ { @@ -255,7 +256,8 @@ "CHANGELOG": "dist/changelog.md", "BUMPFILE": "dist/version.txt", "RELEASETAG": "dist/releasetag.txt", - "RELEASE_TAG_PREFIX": "" + "RELEASE_TAG_PREFIX": "", + "RELEASABLE_COMMITS": "git log --no-merges --oneline $LATEST_TAG..HEAD -E --grep '^(feat|fix){1}(\\([^()[:space:]]+\\))?(!)?:[[:blank:]]+.+'" }, "steps": [ { diff --git a/.projenrc.ts b/.projenrc.ts index 2c9bc9e..ab9da13 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -1,4 +1,4 @@ -import { awscdk } from "projen"; +import { ReleasableCommits, awscdk } from "projen"; import { ProseWrap } from "projen/lib/javascript"; const project = new awscdk.AwsCdkConstructLibrary({ @@ -13,6 +13,7 @@ const project = new awscdk.AwsCdkConstructLibrary({ jsiiVersion: "~5.0.0", + releasableCommits: ReleasableCommits.featuresAndFixes(), // don't release "chore" commits python: { distName: "cdk-circleci-oidc", module: "cdk_circleci_oidc",