Skip to content

chore: release main (#40) #42

chore: release main (#40)

chore: release main (#40) #42

Workflow file for this run

---
name: Release
on:
push:
branches:
- main
jobs:
please:
name: Please
runs-on: ubuntu-latest
steps:
- id: release
name: Release
uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- if: ${{ steps.release.outputs.release_created }}
name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ steps.release.outputs.tag_name }}
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
persist-credentials: true
- if: ${{ steps.release.outputs.release_created }}
name: Tag
run: |
git config user.name stord-engineering-account
git config user.email engineering@stord.com
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 "chore(main): release ${{ steps.release.outputs.major }}"
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "chore(main): 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 }}