Skip to content

Commit 27894a0

Browse files
Tecvan-fefanwenjie
andauthored
chore: rush plugin for generate change logs (#6)
* chore: rush plugin for generate change logs * chore: rush plugin for generate change logs * chore: rush plugin for generate change logs * chore: use rush change in pre-commit hook * chore: publish command chore: publish & release command chore: publish & release command chore: publish & release command chore: publish & release command chore: publish & release pipeline chore: publish & release pipeline chore: Publish feat/rush-change-plugin Revert "chore: Publish feat/rush-change-plugin" This reverts commit 9c82faf. chore: publish & release pipeline chore: publish & release pipeline chore: publish & release pipeline * chore: publish & release pipeline * chore: publish & release pipeline chore: set coze-infra to coze Revert "chore: set coze-infra to coze" This reverts commit 28ffdf3. chore: change scope chore: change scope chore: Publish feat/rush-change-plugin chore: change scope * chore: update lock * chore: update lock * chore: update lock * chore: update lock * chore: update lock * chore: use outside infra * chore: fix test error --------- Co-authored-by: fanwenjie <[email protected]>
1 parent 5d3c7ef commit 27894a0

File tree

163 files changed

+7595
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+7595
-71
lines changed

.github/workflows/release.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Release Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- '**/*'
7+
8+
jobs:
9+
publish:
10+
strategy:
11+
matrix:
12+
include:
13+
- NodeVersion: 20.14.x
14+
NodeVersionDisplayName: 20
15+
OS: ubuntu-latest
16+
name: Node.js v${{ matrix.NodeVersionDisplayName }} (${{ matrix.OS }})
17+
runs-on: ${{ matrix.OS }}
18+
if: github.repository == 'coze-dev/rush-arch'
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Check Release Tag
25+
id: check_tag
26+
run: |
27+
HAS_VALID_TAG=$(git tag --points-at HEAD | grep -E "^v/.+/.+$" || true)
28+
if [ ! -z "$HAS_VALID_TAG" ]; then
29+
echo "has_valid_tag=true" >> $GITHUB_OUTPUT
30+
echo "Found valid tag: $HAS_VALID_TAG"
31+
else
32+
echo "has_valid_tag=false" >> $GITHUB_OUTPUT
33+
echo "No valid tag found"
34+
fi
35+
36+
- name: Config Git User
37+
if: steps.check_tag.outputs.has_valid_tag == 'true'
38+
run: |
39+
git config --local user.name "tecvan"
40+
git config --local user.email "[email protected]"
41+
42+
- uses: actions/setup-node@v3
43+
if: steps.check_tag.outputs.has_valid_tag == 'true'
44+
with:
45+
node-version: ${{ matrix.NodeVersion }}
46+
registry-url: 'https://registry.npmjs.org'
47+
node-version-file: '.nvmrc'
48+
49+
- name: Cache
50+
if: steps.check_tag.outputs.has_valid_tag == 'true'
51+
uses: actions/cache@v4
52+
with:
53+
path: |
54+
common/temp/pnpm-local
55+
common/temp/pnpm-store
56+
common/temp/install-run
57+
key: ${{ runner.os }}-rush-store-${{ hashFiles('common/config/subspaces/**/pnpm-lock.yaml') }}
58+
restore-keys: |
59+
${{ runner.os }}-rush-store-main
60+
${{ runner.os }}-rush-store
61+
62+
- name: Install Dependencies
63+
if: steps.check_tag.outputs.has_valid_tag == 'true'
64+
run: |
65+
npm i -g @microsoft/[email protected]
66+
sudo apt-get update
67+
sudo apt-get install -y libasound2-dev
68+
node common/scripts/install-run-rush.js install
69+
70+
- name: Run Release
71+
if: steps.check_tag.outputs.has_valid_tag == 'true'
72+
run: node common/scripts/install-run-rush.js release --commit ${{ github.event.head_commit.id }}
73+
env:
74+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.vscode/settings.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@
3333
"**/.git": true,
3434
"**/.DS_Store": true,
3535
"**/.swc": true,
36+
"**/rush-logs": true,
3637
"**/.rush": true
3738
},
3839
"files.watcherExclude": {
40+
"**/rush-logs": true,
3941
"**/.git/objects/**": true,
4042
"**/.git/subtree-cache/**": true,
41-
"**/node_modules/*/**": true
43+
"**/node_modules/*/**": true,
44+
"common/temp": true
4245
},
4346
"files.defaultLanguage": "plaintext",
4447
"files.associations": {
@@ -53,7 +56,9 @@
5356
"CODEOWNERS": "ini",
5457
"**/coverage/**/*.*": "plaintext",
5558
"**/pnpm-lock.yaml": "plaintext",
56-
"**/*.yml": "yaml"
59+
"**/*.yml": "yaml",
60+
"**/.npmrc": "ini",
61+
"**/.npmrc-*": "ini"
5762
},
5863
"search.useIgnoreFiles": true,
5964
"files.eol": "\n",

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Rush Architecture is a monorepo template for building and managing Model Context
2626
You can directly use the NPM MCP Server without cloning this repository:
2727

2828
```sh
29-
npx @coze-infra/npm-mcp-server@latest serve
29+
npx @coze-arch/npm-mcp-server@latest serve
3030
```
3131

3232
This will start the MCP server on port 3000 by default. You can access it at `http://localhost:3000/sse`.
@@ -74,7 +74,7 @@ The repository includes an MCP server for npm. You can run it in two modes:
7474
#### HTTP Server Mode
7575
Using npx:
7676
```sh
77-
npx @coze-infra/npm-mcp-server@latest serve
77+
npx @coze-arch/npm-mcp-server@latest serve
7878
# Access the server at http://localhost:3000/sse
7979
```
8080

@@ -87,7 +87,7 @@ npm run serve
8787
#### Terminal Mode
8888
Using npx:
8989
```sh
90-
npx @coze-infra/npm-mcp-server@latest start
90+
npx @coze-arch/npm-mcp-server@latest start
9191
```
9292

9393
Or if developing locally:

common/_templates/component-core/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { defineConfig } = require('@coze-infra/eslint-config');
1+
const { defineConfig } = require('@coze-arch/eslint-config');
22

33
module.exports = defineConfig({
44
packageRoot: __dirname,

common/_templates/component-core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"dependencies": {
1616
},
1717
"devDependencies": {
18-
"@coze-infra/eslint-config": "workspace:*",
19-
"@coze-infra/ts-config": "workspace:*",
20-
"@coze-infra/vitest-config": "workspace:*",
18+
"@coze-arch/eslint-config": "workspace:*",
19+
"@coze-arch/ts-config": "workspace:*",
20+
"@coze-arch/vitest-config": "workspace:*",
2121
"@testing-library/jest-dom": "^6.6.3",
2222
"@testing-library/react": "^16.2.0",
2323
"@testing-library/react-hooks": "^8.0.1",

common/_templates/component-core/tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@coze-infra/ts-config/tsconfig.web.json",
2+
"extends": "@coze-arch/ts-config/tsconfig.web.json",
33
"$schema": "https://json.schemastore.org/tsconfig",
44
"compilerOptions": {
55
"outDir": "dist",

common/_templates/component-core/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineConfig } from '@coze-infra/vitest-config';
1+
import { defineConfig } from '@coze-arch/vitest-config';
22

33
export default defineConfig({
44
dirname: __dirname,

common/_templates/node-core/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { defineConfig } = require('@coze-infra/eslint-config');
1+
const { defineConfig } = require('@coze-arch/eslint-config');
22

33
module.exports = defineConfig({
44
packageRoot: __dirname,

common/_templates/node-core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
},
1515
"dependencies": {},
1616
"devDependencies": {
17-
"@coze-infra/eslint-config": "workspace:*",
18-
"@coze-infra/ts-config": "workspace:*",
19-
"@coze-infra/vitest-config": "workspace:*",
17+
"@coze-arch/eslint-config": "workspace:*",
18+
"@coze-arch/ts-config": "workspace:*",
19+
"@coze-arch/vitest-config": "workspace:*",
2020
"@types/node": "^22.13.13",
2121
"@vitest/coverage-v8": "^3.0.9",
22-
"tsx": "^4.19.2",
22+
"tsx": "^4.19.3",
2323
"vitest": "^3.0.9"
2424
}
2525
}

common/_templates/node-core/tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@coze-infra/ts-config/tsconfig.node.json",
2+
"extends": "@coze-arch/ts-config/tsconfig.node.json",
33
"$schema": "https://json.schemastore.org/tsconfig",
44
"compilerOptions": {
55
"outDir": "dist",

0 commit comments

Comments
 (0)