File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
packages/unplugin-dev-inspector Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 11{
22 "name" : " @mcpc-tech/unplugin-dev-inspector-mcp" ,
3- "version" : " 0.0.26-beta.1 " ,
3+ "version" : " 0.0.27 " ,
44 "description" : " Universal dev inspector plugin for React/Vue - inspect component sources and API calls in any bundler" ,
55 "type" : " module" ,
66 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments