Skip to content

Commit f8bfa01

Browse files
author
Disturbing
committed
fix: update npm publishing strategy for first-time package release
1 parent c58dd2e commit f8bfa01

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,18 @@ jobs:
5959
# Build once more to ensure latest versions are included
6060
yarn build
6161
62-
# Publish to npm
63-
yarn changeset publish
62+
# Manually publish each package with npm
63+
echo "Publishing packages directly with npm..."
64+
cd packages/test-utils
65+
npm publish --access public || echo "Failed to publish test-utils, may already exist"
66+
cd ../mcp
67+
npm publish --access public || echo "Failed to publish mcp, may already exist"
68+
cd ../..
6469
6570
# Push the version updates and tags
6671
git push origin main
6772
git push --tags
6873
env:
6974
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
70-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
75+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
76+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)