We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01f1afd commit 0569dfcCopy full SHA for 0569dfc
.github/workflows/release.yaml
@@ -45,13 +45,13 @@ jobs:
45
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
46
echo "Publishing version: $LATEST_TAG"
47
48
- # Clean any untracked files and reset any changes
49
- git clean -fd
50
- git reset --hard HEAD
51
-
52
# Checkout the latest tag
53
git checkout $LATEST_TAG
54
+ # Clean any untracked files that differ from the latest tag and reset any changes
+ git clean -fd
+ git reset --hard $LATEST_TAG
+
55
npx lerna publish from-git --yes --dist-tag latest
56
env:
57
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments