Skip to content

Commit 1af8319

Browse files
authored
fix: publish only public packages in release workflow (#230)
Skip private packages (@codemcp/workflows-core, @codemcp/workflows-cli) during npm publish by using explicit --filter flags instead of attempting to publish all packages.
1 parent e243177 commit 1af8319

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -161,21 +161,9 @@ jobs:
161161
- name: Publish to npm
162162
if: steps.version.outputs.new_tag
163163
run: |
164-
# Publish core package as the build will depended on it
165-
cd packages/core
166-
pnpm publish --access public --no-git-checks
167-
cd ../..
168-
169-
# Publish MCP server as standalone package
170-
cd packages/mcp-server
171-
pnpm publish --access public --no-git-checks
172-
cd ../..
173-
174-
# Convert workspace dependencies to actual versions for publishing
175-
NEW_VERSION=${{ steps.version.outputs.new_version }}
176-
find packages -name "package.json" -exec sed -i '' "s/\"workspace:\*\"/\"^$NEW_VERSION\"/g" {} \;
177-
178-
# Publish main package
179-
git status && pnpm publish --access public --no-git-checks
164+
# Publish only public packages (those without "private": true)
165+
# Using pnpm publish with --filter to exclude private packages
166+
pnpm --filter '@codemcp/workflows-server' publish --access public --no-git-checks
167+
pnpm --filter '@codemcp/workflows' publish --access public --no-git-checks
180168
env:
181169
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)