diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 1524d19..027bf0a 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -59,7 +59,7 @@ jobs: runs-on: ubuntu-latest needs: [build] steps: - - uses: GoogleCloudPlatform/release-please-action@v2.5.7 + - uses: GoogleCloudPlatform/release-please-action@v2.8.0 with: token: ${{ secrets.ACTIONS_BOT_TOKEN }} release-type: node @@ -70,9 +70,24 @@ jobs: runs-on: ubuntu-latest needs: [build] steps: - - uses: GoogleCloudPlatform/release-please-action@v2.5.7 + - uses: GoogleCloudPlatform/release-please-action@v2.8.0 + id: release with: token: ${{ secrets.GITHUB_TOKEN }} release-type: node package-name: ${{env.ACTION_NAME}} command: github-release + - name: tag major and patch versions + run: | + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/google-github-actions/release-please-action.git" + git tag -d v${{ steps.release.outputs.major }}; echo ok + git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}; echo ok + git push origin :v${{ steps.release.outputs.major }}; echo ok + git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}; echo ok + git tag -a v${{ steps.release.outputs.major }} + git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} + 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 }}