Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit d4814fe

Browse files
author
bcoe
committed
fix(build): working on version of build that tags major/minor release line
1 parent eed4f57 commit d4814fe

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/release-please.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
runs-on: ubuntu-latest
6060
needs: [build]
6161
steps:
62-
- uses: GoogleCloudPlatform/release-please-action@v2.5.7
62+
- uses: GoogleCloudPlatform/release-please-action@v2.8.0
6363
with:
6464
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
6565
release-type: node
@@ -70,9 +70,24 @@ jobs:
7070
runs-on: ubuntu-latest
7171
needs: [build]
7272
steps:
73-
- uses: GoogleCloudPlatform/release-please-action@v2.5.7
73+
- uses: GoogleCloudPlatform/release-please-action@v2.8.0
74+
id: release
7475
with:
7576
token: ${{ secrets.GITHUB_TOKEN }}
7677
release-type: node
7778
package-name: ${{env.ACTION_NAME}}
7879
command: github-release
80+
- name: tag major and patch versions
81+
run: |
82+
git config user.name github-actions[bot]
83+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
84+
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/google-github-actions/release-please-action.git"
85+
git tag -d v${{ steps.release.outputs.major }}; echo ok
86+
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}; echo ok
87+
git push origin :v${{ steps.release.outputs.major }}; echo ok
88+
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}; echo ok
89+
git tag -a v${{ steps.release.outputs.major }}
90+
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
91+
git push origin v${{ steps.release.outputs.major }}
92+
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }};
93+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)