Skip to content

Commit

Permalink
Merge pull request #1098 from jrjohnson/fixup-tagging
Browse files Browse the repository at this point in the history
Fix release tagging
  • Loading branch information
jrjohnson authored Jan 29, 2024
2 parents 00981bf + 3ccb645 commit ab59e5e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/tag_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,28 @@ jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.ZORGBORT_TOKEN }}
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
cache: pnpm
- name: Validate releaseType
run: npx in-string-list ${{ github.event.inputs.releaseType }} major,minor,patch
- name: Setup Git
run: |
git config user.name Zorgbort
git config user.email info@iliosproject.org
- name: Increment Version
run: pnpm version --filter ember-simple-charts ${{ github.event.inputs.releaseType }}
working-directory: ./packages/ember-simple-charts
run: npx versionup --level ${{ github.event.inputs.releaseType }}
- run: |
NEW_TAG=`node -p "require('./packages/ember-simple-charts/package.json').version"`
echo ${NEW_TAG}
echo "new_tag=${NEW_TAG}" >> $GITHUB_ENV
- name: Tag Version
run: |
git commit -a -m "${{env.new_tag}}"
git tag ${{env.new_tag}} -m "Tagging the ${{env.new_tag}} ${{ github.event.inputs.releaseType }} release"
git tag v${{env.new_tag}} -m "Tagging the v${{env.new_tag}} ${{ github.event.inputs.releaseType }} release"
- name: Push Changes
run: git push --follow-tags

0 comments on commit ab59e5e

Please sign in to comment.