Skip to content

Commit

Permalink
Merge pull request #807 from cygaar/fix_release_3
Browse files Browse the repository at this point in the history
fix: release workflow part 3
  • Loading branch information
shakkernerd authored Dec 3, 2024
2 parents 6b60247 + 65b03ce commit ecfc803
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,17 @@ jobs:
run: |
# Get the latest release tag
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "Publishing version: $LATEST_TAG"
# Checkout the latest tag
git checkout $LATEST_TAG
# Clean any untracked files that differ from the latest tag and reset any changes
# Force clean the working directory and reset any changes
echo "Cleaning working directory and resetting any changes"
git clean -fd
git reset --hard $LATEST_TAG
git reset --hard HEAD
# Force checkout the latest tag
echo "Checking out latest tag: $LATEST_TAG"
git checkout -f $LATEST_TAG
echo "Publishing version: $LATEST_TAG"
npx lerna publish from-git --yes --dist-tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit ecfc803

Please sign in to comment.