Skip to content

Commit

Permalink
feat: new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Delyc committed Aug 26, 2024
1 parent f14d4c0 commit cb9f1ff
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/build-push-fe-docker-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,6 @@ jobs:
working-directory: ./
run: npm install

- name: Fetch tags
run: git fetch --tags

- name: Determine next version
id: determine_version
run: |
# Check if any tags exist
if git tag -l | grep -q '^v'; then
# Get the latest tag
LATEST_TAG=$(git describe --tags --abbrev=0)
else
# If no tags, set the initial tag
LATEST_TAG='v0.0.0'
fi
# Run semantic-release to get the next version
NEXT_VERSION=$(npx semantic-release --dry-run | grep 'Next version' | awk '{print $NF}')
echo "NEXT_VERSION=${NEXT_VERSION}" >> $GITHUB_ENV
- name: Run semantic-release
working-directory: ./
env:
Expand Down

0 comments on commit cb9f1ff

Please sign in to comment.