Skip to content

Commit

Permalink
Add version bump to publish-next (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomski747 authored May 9, 2024
1 parent 8b52277 commit 561a899
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ jobs:
registry-url: https://registry.npmjs.org/
- name: Get Short SHA
run: echo "SHORT_SHA=`echo ${{ github.sha }} | cut -c1-8`" >> $GITHUB_ENV
- name: Automated Version Bump
id: version-bump
uses: phips28/gh-action-bump-version@master
with:
skip-push: 'true'
tag-suffix: '-next'
- name: Get Next Version
run: |
current_date=$(date +'%Y%m%d')
echo "NEW_VERSION=0.0.0-next-${SHORT_SHA}-${current_date}" >> $GITHUB_ENV
echo "NEW_VERSION=${{ steps.version-bump.outputs.newTag }}-${SHORT_SHA}-${current_date}" >> $GITHUB_ENV
- name: Use Next Version
run: |
git config --global user.email "[email protected]"
Expand Down

0 comments on commit 561a899

Please sign in to comment.