Skip to content

Commit b4c9de5

Browse files
committed
fix release scripts
1 parent 50140bd commit b4c9de5

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,8 @@
190190
"vue": "3.2.45",
191191
"vite": "2.6.14"
192192
}
193-
}
193+
},
194+
"workspaces": [
195+
"packages/*"
196+
]
194197
}

scripts/release-edge.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ fi
1818

1919
# Release packages
2020
for PKG in packages/* ; do
21-
pushd $PKG
22-
echo "⚡ Publishing $PKG with edge tag"
23-
pnpm publish --access public --no-git-checks --tag edge
24-
popd
21+
if [[ -d $PKG ]]; then
22+
if [[ $PKG == packages/size-* || $PKG == packages/format-explorer ]]; then
23+
continue
24+
fi
25+
pushd $PKG
26+
echo "⚡ Publishing $PKG with edge tag"
27+
pnpm publish --access public --no-git-checks --tag edge
28+
popd
29+
fi
2530
done

scripts/release.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ fi
1818

1919
# Release packages
2020
for PKG in packages/* ; do
21-
pushd $PKG
22-
TAG="next"
23-
echo "⚡ Publishing $PKG with tag $TAG"
24-
pnpm publish --access public --no-git-checks --tag $TAG
25-
popd > /dev/null
21+
if [[ -d $PKG ]]; then
22+
if [[ $PKG == packages/size-* || $PKG == packages/format-explorer ]]; then
23+
continue
24+
fi
25+
pushd $PKG
26+
TAG="next"
27+
echo "⚡ Publishing $PKG with tag $TAG"
28+
pnpm publish --access public --no-git-checks --tag $TAG
29+
popd > /dev/null
30+
fi
2631
done

0 commit comments

Comments
 (0)