Skip to content

Commit 0569dfc

Browse files
committed
Update ordering
1 parent 01f1afd commit 0569dfc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ jobs:
4545
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
4646
echo "Publishing version: $LATEST_TAG"
4747
48-
# Clean any untracked files and reset any changes
49-
git clean -fd
50-
git reset --hard HEAD
51-
5248
# Checkout the latest tag
5349
git checkout $LATEST_TAG
5450
51+
# Clean any untracked files that differ from the latest tag and reset any changes
52+
git clean -fd
53+
git reset --hard $LATEST_TAG
54+
5555
npx lerna publish from-git --yes --dist-tag latest
5656
env:
5757
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)