This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): working on version of build that tags major/minor release…
… line
- Loading branch information
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
- uses: GoogleCloudPlatform/[email protected] | ||
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 }} |