Skip to content

Commit 1d9107d

Browse files
committed
add release beta
1 parent 9802640 commit 1d9107d

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed

.github/workflows/release_beta.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
name: Release Beta
2+
3+
on:
4+
push:
5+
branches:
6+
- beta
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release Beta
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
id-token: write
18+
steps:
19+
- name: Checkout Repo
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v3
26+
with:
27+
version: 10.6.1
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: 22
33+
cache: 'pnpm'
34+
registry-url: 'https://registry.npmjs.org'
35+
36+
- name: Install Dependencies
37+
run: pnpm install --frozen-lockfile
38+
39+
- name: Build Packages
40+
run: pnpm build
41+
42+
- name: Create Release Pull Request or Publish to npm
43+
id: changesets
44+
uses: changesets/action@v1
45+
with:
46+
version: pnpm version
47+
commit: 'chore: version packages (beta)'
48+
title: 'chore: version packages (beta)'
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
52+
- name: Publish mcp-use package with NPM_TOKEN (beta)
53+
if: steps.changesets.outputs.hasChangesets == 'false'
54+
run: |
55+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
56+
echo "📦 Publishing mcp-use@beta with NPM_TOKEN..."
57+
cd packages/mcp-use && pnpm publish --access public --no-git-checks --tag beta
58+
cd ../..
59+
rm -f .npmrc
60+
env:
61+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62+
63+
- name: Publish other packages with NPM_TOKEN_ORG (beta)
64+
if: steps.changesets.outputs.hasChangesets == 'false'
65+
run: |
66+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_ORG }}" > .npmrc
67+
68+
# Publish in dependency order: inspector and create-mcp-use-app first, then cli
69+
echo "📦 Publishing @mcp-use/inspector@beta with NPM_TOKEN_ORG..."
70+
cd packages/inspector && pnpm publish --access public --no-git-checks --tag beta
71+
cd ../..
72+
73+
echo "📦 Publishing create-mcp-use-app@beta with NPM_TOKEN_ORG..."
74+
cd packages/create-mcp-use-app && pnpm publish --access public --no-git-checks --tag beta
75+
cd ../..
76+
77+
echo "📦 Publishing @mcp-use/cli@beta with NPM_TOKEN_ORG..."
78+
cd packages/cli && pnpm publish --access public --no-git-checks --tag beta
79+
cd ../..
80+
81+
rm -f .npmrc
82+
env:
83+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ORG }}
84+
85+
- name: Send Notification on Success
86+
if: steps.changesets.outputs.hasChangesets == 'false'
87+
run: |
88+
echo "✅ Beta packages published successfully!"
89+
echo "📦 mcp-use@beta published with NPM_TOKEN"
90+
echo "📦 Other packages@beta published with NPM_TOKEN_ORG"
91+
echo ""
92+
echo "Install beta versions with:"
93+
echo " npm install mcp-use@beta"
94+
echo " npm install @mcp-use/cli@beta"
95+
echo " npm install @mcp-use/inspector@beta"
96+
echo " npm install create-mcp-use-app@beta"
97+

0 commit comments

Comments
 (0)