From d4814feca529141f25d8c871b3c2d093b38c14c8 Mon Sep 17 00:00:00 2001 From: bcoe Date: Wed, 25 Nov 2020 12:45:43 -0800 Subject: [PATCH] fix(build): working on version of build that tags major/minor release line --- .github/workflows/release-please.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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 }}