Skip to content

Commit de7036f

Browse files
willwearingclaude
andcommitted
Fix npm publish: resolve workspace:* protocol, bump CLI to 0.2.5
npm publish doesn't understand bun's workspace:* protocol. Resolve it to the actual @graspful/shared version before publish. Bump CLI to 0.2.5 since 0.2.3 and 0.2.4 are burned versions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a1c9781 commit de7036f

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/publish-packages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ jobs:
6565
echo "target=all" >> "$GITHUB_OUTPUT"
6666
fi
6767
68+
- name: Resolve workspace protocol for npm publish
69+
run: |
70+
SHARED_VERSION=$(node -p "require('./packages/shared/package.json').version")
71+
for pkg in packages/cli/package.json packages/mcp/package.json; do
72+
sed -i "s|\"workspace:\\*\"|\"^${SHARED_VERSION}\"|g" "$pkg"
73+
done
74+
6875
- name: Build and publish @graspful/shared
6976
run: cd packages/shared && bun run build
7077

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graspful/cli",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"description": "Create adaptive learning courses from YAML. CLI and MCP server for AI agents.",
55
"keywords": ["course", "learning", "adaptive", "mcp", "mcp-server", "ai", "ai-agent", "agent", "cli", "education", "edtech", "knowledge-graph", "spaced-repetition", "course-creation", "yaml", "adaptive-learning", "lms"],
66
"repository": {

0 commit comments

Comments
 (0)