diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..31fdcac --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,18 @@ +name: Release Drafter + +on: + push: + branches: + - 2.2.x + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + with: + name: "cachecontrol $RESOLVED_VERSION" + config-name: release-drafts/increasing-patch-version.yml # located in .github/ in the default branch within this or the .github repo + commitish: ${{ github.ref_name }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/build.sbt b/build.sbt index 5c3142c..2e4d373 100644 --- a/build.sbt +++ b/build.sbt @@ -23,10 +23,11 @@ lazy val cachecontrol = (project in file(".")) slf4j, slf4jSimple % Test ), - // On the main branch we don't check for incompatible changes, - // because it's ok to introduce breaking changes between minor version bumps - mimaPreviousArtifacts := Set.empty, - sonatypeProfileName := "com.typesafe", + mimaPreviousArtifacts := Set( + organization.value %% name.value % previousStableVersion.value + .getOrElse(throw new Error("Unable to determine previous version")) + ), + sonatypeProfileName := "com.typesafe.play", headerLicense := { Some( HeaderLicense.Custom(