diff --git a/.github/workflows/release_please.yml b/.github/workflows/release_please.yml new file mode 100644 index 000000000..02570a0a3 --- /dev/null +++ b/.github/workflows/release_please.yml @@ -0,0 +1,20 @@ +on: + push: + branches: + - dev + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v3 + with: + release-type: node + package-name: release-please-action + default-branch: master diff --git a/.github/workflows/update_frontend.yml b/.github/workflows/update_frontend.yml index 4a6576041..b87939605 100644 --- a/.github/workflows/update_frontend.yml +++ b/.github/workflows/update_frontend.yml @@ -23,7 +23,7 @@ jobs: - uses: peter-evans/create-pull-request@v5 id: cpr with: - commit-message: Update zigbee2mqtt-frontend to ${{ github.event.client_payload.version }} + commit-message: "chore: update zigbee2mqtt-frontend to ${{ github.event.client_payload.version }}" branch: "update_frontend" title: Update zigbee-frontend to ${{ github.event.client_payload.version }} - run: sleep 5 # Otherwise pull request may not exist yet causing automerge to fail diff --git a/.github/workflows/update_zh.yml b/.github/workflows/update_zh.yml index c81664b27..2abf329f0 100644 --- a/.github/workflows/update_zh.yml +++ b/.github/workflows/update_zh.yml @@ -23,7 +23,7 @@ jobs: - uses: peter-evans/create-pull-request@v5 id: cpr with: - commit-message: Update zigbee-herdsman to ${{ github.event.client_payload.version }} + commit-message: "chore: update zigbee-herdsman to ${{ github.event.client_payload.version }}" branch: "update_zh" title: Update zigbee-herdsman to ${{ github.event.client_payload.version }} - run: sleep 5 # Otherwise pull request may not exist yet causing automerge to fail diff --git a/.github/workflows/update_zhc.yml b/.github/workflows/update_zhc.yml index 5bf44d87d..a783988a9 100644 --- a/.github/workflows/update_zhc.yml +++ b/.github/workflows/update_zhc.yml @@ -23,7 +23,7 @@ jobs: - uses: peter-evans/create-pull-request@v5 id: cpr with: - commit-message: Update zigbee-herdsman-converters to ${{ github.event.client_payload.version }} + commit-message: "chore: update zigbee-herdsman-converters to ${{ github.event.client_payload.version }}" branch: "update_zhc" title: Update zigbee-herdsman-converters to ${{ github.event.client_payload.version }} - run: sleep 5 # Otherwise pull request may not exist yet causing automerge to fail diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 000000000..09427b9e1 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,4 @@ +{ + ".": "0.0.0", + "bootstrap-sha": "b2dd21e164b457d5cd0c9d455cdb879d881c44bd" +} \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 000000000..161d1adb0 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,13 @@ +{ + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "release-type": "node", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} \ No newline at end of file