diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 801e7dd..3ec338a 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -55,32 +55,6 @@ jobs: branch: create-pull-request/build-dist delete-branch: true push-to-fork: google-github-actions-bot/${{env.ACTION_NAME}} - release-please-pr: - runs-on: ubuntu-latest - needs: [build] - steps: - - id: release-pr - uses: GoogleCloudPlatform/release-please-action@main - with: - token: ${{ secrets.ACTIONS_BOT_TOKEN }} - release-type: node - fork: true - package-name: ${{env.ACTION_NAME}} - command: release-pr - - id: label - if: ${{ steps.release-pr.outputs.pr }} - uses: actions/github-script@v3 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); - await github.issues.addLabels({ - owner, - repo, - issue_number: ${{steps.release-pr.outputs.pr}}, - labels: ['autorelease: pending'] - }); - console.log(`Tagged ${{steps.release-pr.outputs.pr}}`) release-please-release: runs-on: ubuntu-latest needs: [build] @@ -107,3 +81,31 @@ jobs: git push origin v${{ steps.release.outputs.major }} git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} if: ${{ steps.release.outputs.release_created }} + release-please-pr: + runs-on: ubuntu-latest + needs: + - build + - release-please-release + steps: + - id: release-pr + uses: GoogleCloudPlatform/release-please-action@main + with: + token: ${{ secrets.ACTIONS_BOT_TOKEN }} + release-type: node + fork: true + package-name: ${{env.ACTION_NAME}} + command: release-pr + - id: label + if: ${{ steps.release-pr.outputs.pr }} + uses: actions/github-script@v3 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); + await github.issues.addLabels({ + owner, + repo, + issue_number: ${{steps.release-pr.outputs.pr}}, + labels: ['autorelease: pending'] + }); + console.log(`Tagged ${{steps.release-pr.outputs.pr}}`)