chore: bump to 0.1.5, fix publish to skip already-published versions

This commit is contained in:
jackwener
2026-04-17 09:25:04 +08:00
parent 7c27a83340
commit 0e2711dcf8
9 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -146,7 +146,7 @@ jobs:
run: |
for dir in darwin-arm64 darwin-x64 linux-x64 linux-arm64 win32-x64; do
cd npm/platforms/$dir
npm publish
npm publish 2>&1 | tee /tmp/npm-out.txt || grep -q "previously published" /tmp/npm-out.txt || exit 1
cd ../../..
done
env:
@@ -155,6 +155,6 @@ jobs:
- name: Publish main package
run: |
cd npm/wx-cli
npm publish
npm publish 2>&1 | tee /tmp/npm-out.txt || grep -q "previously published" /tmp/npm-out.txt || exit 1
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}