Skip to content

Commit 56a530a

Browse files
author
fanwenjie
committed
chore: publish & release command
1 parent 6a6f8a6 commit 56a530a

File tree

3 files changed

+189
-0
lines changed

3 files changed

+189
-0
lines changed

common/autoinstallers/plugins/rush-plugins/@coze-infra/rush-publish-plugin/@coze-infra/rush-publish-plugin/command-line.json

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/command-line.schema.json",
33
"commands": [
4+
{
5+
"name": "pub",
6+
"commandKind": "global",
7+
"summary": "⭐️️ Publish packages to npm",
8+
"shellCommand": "rush-x publish",
9+
"safeForSimultaneousRushProcesses": true
10+
},
411
{
512
"name": "change-x",
613
"commandKind": "global",
@@ -10,6 +17,88 @@
1017
}
1118
],
1219
"parameters": [
20+
{
21+
"parameterKind": "string",
22+
"description": "Enable dry run mode",
23+
"shortName": "-d",
24+
"longName": "--dry-run",
25+
"argumentName": "DRY_RUN",
26+
"associatedCommands": ["pub"],
27+
"required": false
28+
},
29+
{
30+
"parameterKind": "string",
31+
"shortName": "-t",
32+
"longName": "--to",
33+
"description": "Publish specified packages and their downstream dependencies",
34+
"argumentName": "TO",
35+
"associatedCommands": ["pub"],
36+
"required": false
37+
},
38+
{
39+
"parameterKind": "string",
40+
"shortName": "-f",
41+
"longName": "--from",
42+
"description": "Publish specified packages and their upstream/downstream dependencies",
43+
"argumentName": "FROM",
44+
"associatedCommands": ["pub"],
45+
"required": false
46+
},
47+
{
48+
"parameterKind": "string",
49+
"shortName": "-o",
50+
"longName": "--only",
51+
"description": "Only publish specified packages",
52+
"argumentName": "ONLY",
53+
"associatedCommands": ["pub"],
54+
"required": false
55+
},
56+
{
57+
"parameterKind": "flag",
58+
"shortName": "-s",
59+
"longName": "--skip-commit",
60+
"description": "Skip git commit",
61+
"associatedCommands": ["pub"],
62+
"required": false
63+
},
64+
{
65+
"parameterKind": "flag",
66+
"shortName": "-p",
67+
"longName": "--skip-push",
68+
"description": "Skip git push",
69+
"associatedCommands": ["pub"],
70+
"required": false
71+
},
72+
{
73+
"parameterKind": "choice",
74+
"alternatives": [
75+
{
76+
"name": "alpha",
77+
"description": "Alpha version"
78+
},
79+
{
80+
"name": "beta",
81+
"description": "Beta version"
82+
},
83+
{
84+
"name": "patch",
85+
"description": "Patch version"
86+
},
87+
{
88+
"name": "minor",
89+
"description": "Minor version"
90+
},
91+
{
92+
"name": "major",
93+
"description": "Major version"
94+
}
95+
],
96+
"shortName": "-b",
97+
"longName": "--bump-type",
98+
"description": "Version bump type (alpha/beta/patch/minor/major)",
99+
"associatedCommands": ["pub"],
100+
"required": false
101+
},
13102
{
14103
"parameterKind": "flag",
15104
"longName": "--amend-commit",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze-infra/rush-publish-plugin",
5+
"comment": "publish & release command",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze-infra/rush-publish-plugin",
10+
"email": "[email protected]"
11+
}

packages/rush-plugins/publish/command-line.json

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/command-line.schema.json",
33
"commands": [
4+
{
5+
"name": "pub",
6+
"commandKind": "global",
7+
"summary": "⭐️️ Publish packages to npm",
8+
"shellCommand": "rush-x publish",
9+
"safeForSimultaneousRushProcesses": true
10+
},
411
{
512
"name": "change-x",
613
"commandKind": "global",
@@ -10,6 +17,88 @@
1017
}
1118
],
1219
"parameters": [
20+
{
21+
"parameterKind": "string",
22+
"description": "Enable dry run mode",
23+
"shortName": "-d",
24+
"longName": "--dry-run",
25+
"argumentName": "DRY_RUN",
26+
"associatedCommands": ["pub"],
27+
"required": false
28+
},
29+
{
30+
"parameterKind": "string",
31+
"shortName": "-t",
32+
"longName": "--to",
33+
"description": "Publish specified packages and their downstream dependencies",
34+
"argumentName": "TO",
35+
"associatedCommands": ["pub"],
36+
"required": false
37+
},
38+
{
39+
"parameterKind": "string",
40+
"shortName": "-f",
41+
"longName": "--from",
42+
"description": "Publish specified packages and their upstream/downstream dependencies",
43+
"argumentName": "FROM",
44+
"associatedCommands": ["pub"],
45+
"required": false
46+
},
47+
{
48+
"parameterKind": "string",
49+
"shortName": "-o",
50+
"longName": "--only",
51+
"description": "Only publish specified packages",
52+
"argumentName": "ONLY",
53+
"associatedCommands": ["pub"],
54+
"required": false
55+
},
56+
{
57+
"parameterKind": "flag",
58+
"shortName": "-s",
59+
"longName": "--skip-commit",
60+
"description": "Skip git commit",
61+
"associatedCommands": ["pub"],
62+
"required": false
63+
},
64+
{
65+
"parameterKind": "flag",
66+
"shortName": "-p",
67+
"longName": "--skip-push",
68+
"description": "Skip git push",
69+
"associatedCommands": ["pub"],
70+
"required": false
71+
},
72+
{
73+
"parameterKind": "choice",
74+
"alternatives": [
75+
{
76+
"name": "alpha",
77+
"description": "Alpha version"
78+
},
79+
{
80+
"name": "beta",
81+
"description": "Beta version"
82+
},
83+
{
84+
"name": "patch",
85+
"description": "Patch version"
86+
},
87+
{
88+
"name": "minor",
89+
"description": "Minor version"
90+
},
91+
{
92+
"name": "major",
93+
"description": "Major version"
94+
}
95+
],
96+
"shortName": "-b",
97+
"longName": "--bump-type",
98+
"description": "Version bump type (alpha/beta/patch/minor/major)",
99+
"associatedCommands": ["pub"],
100+
"required": false
101+
},
13102
{
14103
"parameterKind": "flag",
15104
"longName": "--amend-commit",

0 commit comments

Comments
 (0)