mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-10 00:31:12 +02:00
fix(build): working on version of build that tags major/minor release line
This commit is contained in:
19
.github/workflows/release-please.yaml
vendored
19
.github/workflows/release-please.yaml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user