From 401059dc14b5eba2afd94562834586a993c8def4 Mon Sep 17 00:00:00 2001 From: FBumann <117816358+FBumann@users.noreply.github.com> Date: Tue, 27 Jan 2026 21:13:44 +0100 Subject: [PATCH 1/2] Update ci to use release-please for releases --- .github/workflows/pr-title.yml | 33 ++++++++++++++++++++++++++++ .github/workflows/release-please.yml | 19 ++++++++++++++++ .github/workflows/release.yml | 7 ------ 3 files changed, 52 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/pr-title.yml create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 0000000..c4ede52 --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,33 @@ +name: PR Title Check + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + # Require conventional commit format: type(scope): description + # Types allowed (default set) + types: | + feat + fix + docs + style + refactor + perf + test + build + ci + chore + revert + # Scope is optional + requireScope: false + # Subject (description) requirements + subjectPattern: ^.+$ + subjectPatternError: "PR title must have a description after the type" diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..5811edb --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,19 @@ +name: Release Please + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + release-type: simple + package-name: xarray_plotly diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 882eeb0..d11e298 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,6 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write # for trusted publishing - contents: write # for creating GitHub release steps: - uses: actions/checkout@v6 @@ -23,9 +22,3 @@ jobs: - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - - - name: Create GitHub Release - uses: softprops/action-gh-release@v2 - with: - generate_release_notes: true - files: dist/* From f906bbc8debfbd3b49567c1913af7ed25551cf84 Mon Sep 17 00:00:00 2001 From: FBumann <117816358+FBumann@users.noreply.github.com> Date: Tue, 27 Jan 2026 21:14:52 +0100 Subject: [PATCH 2/2] Keep version at 0.0.x for feat: --- .github/workflows/release-please.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 5811edb..e4026cc 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -17,3 +17,5 @@ jobs: with: release-type: simple package-name: xarray_plotly + # Keep version at 0.0.x - feat: bumps patch instead of minor + bump-patch-for-minor-pre-major: true