Skip to content

Commit 16770a9

Browse files
committed
ci: skip @cfxdevkit/theme in npm publish (internal Tailwind preset, not published)
1 parent ebe198a commit 16770a9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,15 @@ jobs:
130130
run: |
131131
set -e
132132
failed=''
133+
# packages/theme is an internal Tailwind preset — not published to npm
134+
SKIP_PACKAGES='packages/theme'
133135
for pkg_dir in packages/*/; do
134-
pkg_name=$(node -p "require('./${pkg_dir}package.json').name")
136+
pkg_dir="${pkg_dir%/}"
137+
if echo "$SKIP_PACKAGES" | grep -qw "$pkg_dir"; then
138+
echo "\n--- Skipping ${pkg_dir} (not published) ---"
139+
continue
140+
fi
141+
pkg_name=$(node -p "require('./${pkg_dir}/package.json').name")
135142
echo "\n--- Publishing ${pkg_name} ---"
136143
tarball=$(pnpm pack -C "${pkg_dir}" --pack-destination "$PWD" 2>/dev/null | tail -1)
137144
if ! npm publish "${tarball}" --access public; then

0 commit comments

Comments
 (0)