diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 308daa2..5701570 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -101,6 +101,26 @@ jobs: cd ./generator npm run publish:env + - name: Update bee version in package.json + uses: jossef/action-set-json-field@v1 + if: ${{ github.event_name == 'repository_dispatch' }} + with: + file: package.json + field: engines.bee + value: ${{ env.BEE_VERSION }} + + - name: Create/update PR + if: ${{ github.event_name == 'repository_dispatch' }} + uses: gr2m/create-or-update-pull-request-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.REPO_GHA_PAT }} + with: + title: "chore: update to bee ${{ env.BEE_VERSION }}" + body: "Updated Bee version ${{ env.BEE_VERSION }}" + branch: "bee-${{ env.BEE_VERSION }}" + commit-message: "chore: update to new bee" + author: "bee-worker " + - name: Trigger Bee-js PR creation if: ${{ github.event_name == 'repository_dispatch' }} uses: peter-evans/repository-dispatch@v1