8000 fix: dist-tags · sdkgen/sdkgen@093ecfe · GitHub
[go: up one dir, main page]

Skip to content

Commit 093ecfe

Browse files
committed
fix: dist-tags
1 parent 4c1148c commit 093ecfe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ jobs:
1818
run: |
1919
if [ "${{ github.ref_type }}" == "tag" ]; then
2020
echo -n "${{ github.ref_name }}" | tee version.txt
21+
echo -n latest > dist-tag.txt
2122
else
2223
echo -n 0.0.0-dev.$(date -u +'%Y%m%d%H%M%S') | tee version.txt
24+
echo -n dev > dist-tag.txt
2325
fi
2426
2527
- name: Setup Node.js 📦
@@ -57,7 +59,7 @@ jobs:
5759
- name: Publish NPM packages 🚀
5860
run: |
5961
cp -r LICENSE packages/*
60-
npx lerna publish $(cat version.txt) --no-git-tag-version --no-push --yes
62+
npx lerna publish $(cat version.txt) --no-git-tag-version --no-push --yes --dist-tag=$(cat dist-tag.txt)
6163
env:
6264
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
6365

0 commit comments

Comments
 (0)
0