File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,19 @@ jobs:
43
43
- name : Build packages
44
44
run : pnpm run build
45
45
46
- - name : Tag and Publish Packages
47
- id : tag_publish
46
+ - name : Publish Packages
47
+ id : publish
48
48
run : |
49
- npx lerna version ${{ github.event.inputs.release_type }} --conventional-commits --yes --no-private --force-publish
50
- npx lerna publish from-git --yes --dist-tag ${{ github.event.inputs.release_type == 'preminor' && 'next' || 'latest' }}
49
+ # Get the latest release tag
50
+ LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
51
+ echo "Publishing version: $LATEST_TAG"
52
+
53
+ # Checkout the latest tag
54
+ git checkout $LATEST_TAG
55
+
56
+ npx lerna publish from-git --yes --dist-tag latest
57
+ env :
58
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
51
59
52
60
- name : Get Version Tag
53
61
id : get_tag
You can’t perform that action at this time.
0 commit comments