Skip to content

Commit 53860b1

Browse files
committed
chore: bump unplugin-dev-inspector version to 0.0.27
1 parent 85a8e55 commit 53860b1

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,26 @@ jobs:
3333

3434
- name: Publish
3535
working-directory: packages/unplugin-dev-inspector
36-
run: npm publish
36+
run: |
37+
for dir in __*_*/dist; do
38+
cd "$dir"
39+
NAME=$(node -p "require('./package.json').name")
40+
VERSION=$(node -p "require('./package.json').version")
41+
42+
if npm view "$NAME@$VERSION" version 2>/dev/null; then
43+
echo "Skipping $NAME@$VERSION (already published)"
44+
else
45+
# For prerelease versions, explicitly set tag to prevent it from becoming 'latest'
46+
if echo "$VERSION" | grep -qE '\-[a-zA-Z]'; then
47+
TAG=$(echo "$VERSION" | sed -E 's/[^-]*-([a-zA-Z]+).*/\1/')
48+
echo "Publishing prerelease $NAME@$VERSION with tag: $TAG"
49+
npm publish --access public --provenance --tag "$TAG"
50+
else
51+
echo "Publishing stable release $NAME@$VERSION"
52+
npm publish --access public --provenance
53+
fi
54+
fi
55+
cd ../..
56+
done
3757
env:
3858
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/unplugin-dev-inspector/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mcpc-tech/unplugin-dev-inspector-mcp",
3-
"version": "0.0.26-beta.1",
3+
"version": "0.0.27-beta.1",
44
"description": "Universal dev inspector plugin for React/Vue - inspect component sources and API calls in any bundler",
55
"type": "module",
66
"license": "MIT",

0 commit comments

Comments
 (0)