Bump version for first release since repo is open (#188) #16
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
name: Tag release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'packages/seed/package.json' | |
concurrency: | |
group: tag-release-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tag-release: | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check package version | |
id: cpv | |
uses: PostHog/check-package-version@v2 | |
with: | |
path: packages/seed | |
- name: Push a new tag on git repo | |
if: steps.cpv.outputs.is-new-version == 'true' | |
uses: Klemensas/action-autotag@stable | |
env: | |
GITHUB_TOKEN: "${{ secrets.GH_PAT_COMMIT }}" | |
with: | |
package_root: "packages/seed" | |
tag_prefix: "v" |