mirror of
https://github.com/jackwener/wx-cli.git
synced 2026-10-08 15:15:46 +00:00
chore: bump to 0.1.5, fix publish to skip already-published versions
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user