Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
fix(build): working on version of build that tags major/minor release…
Browse files Browse the repository at this point in the history
… line
  • Loading branch information
bcoe committed Nov 25, 2020
1 parent eed4f57 commit d4814fe
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit d4814fe

Please sign in to comment.