Skip to content

chore(main): release 2.10.3 #2501

chore(main): release 2.10.3

chore(main): release 2.10.3 #2501

Workflow file for this run

name: Release
on:
pull_request:
branches:
- main
push:
branches:
- main
label:
types: [created, deleted]
workflow_call:
outputs:
release-created:
description: 'Has the releease been created'
value: ${{ jobs.release.outputs.release-created }}
major-tag:
description: 'Major version tag'
value: ${{ jobs.release.outputs.major-tag }}
minor-tag:
description: 'Minor version tag'
value: ${{ jobs.release.outputs.minor-tag }}
patch-tag:
description: 'Patch version tag'
value: ${{ jobs.release.outputs.patch-tag }}
permissions:
contents: write
pull-requests: write
jobs:
Release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
outputs:
release-created: ${{ steps.release.outputs.release_created }}
major-tag: ${{ steps.release.outputs.major }}
minor-tag: ${{ steps.release.outputs.minor }}
patch-tag: ${{ steps.release.outputs.patch }}
steps:
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ env.GITHUB_TOKEN }}
release-type: node
package-name: crea-public
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: tag major and minor versions
if: ${{ steps.release.outputs.release_created }}
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://${{ env.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
git tag -d v${{ steps.release.outputs.major }} || true
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git push origin :v${{ steps.release.outputs.major }} || true
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release 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 }}