Skip to content

Commit 6a0ceab

Browse files
Merge pull request #25 from modelstudioai/chore/publish-workflow
Chore/publish workflow
2 parents 3b11a62 + cdf2116 commit 6a0ceab

5 files changed

Lines changed: 21 additions & 32 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
name: lint + typecheck + test
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818

19-
- uses: pnpm/action-setup@v4
19+
- uses: pnpm/action-setup@v6
2020

21-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@v6
2222
with:
2323
node-version: "22"
2424
cache: pnpm
Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
1-
name: Release
2-
3-
# Consolidated workflow because npm Trusted Publishers only allows ONE
4-
# (repo, workflow, environment) tuple per package — so stable + channel
5-
# must share a single workflow file.
1+
name: Publish
62

73
on:
84
workflow_dispatch:
95
inputs:
106
mode:
11-
description: "Release mode"
7+
description: "Publish mode"
128
required: true
139
type: choice
1410
options:
15-
- stable
1611
- channel
12+
- stable
1713
channel:
18-
description: "dist-tag for channel mode (kebab-case, e.g. mcp/plugin/advisor). Reserved: latest/beta/alpha/next/rc/canary/dev. Ignored when mode=stable."
14+
description: "dist-tag (channel mode only, e.g. mcp/plugin/advisor)"
1915
required: false
2016
type: string
2117

22-
# Serialize stable globally; serialize channel per dist-tag name.
2318
concurrency:
24-
group: release-${{ inputs.mode }}-${{ inputs.channel }}
19+
group: publish-${{ inputs.mode }}-${{ inputs.channel }}
2520
cancel-in-progress: false
2621

2722
jobs:
@@ -34,13 +29,13 @@ jobs:
3429
contents: write # push lightweight tag to origin
3530
id-token: write # OIDC for npm Trusted Publishing + provenance
3631
steps:
37-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v6
3833

39-
- uses: pnpm/action-setup@v4
34+
- uses: pnpm/action-setup@v6
4035

41-
- uses: actions/setup-node@v4
36+
- uses: actions/setup-node@v6
4237
with:
43-
node-version: "22"
38+
node-version: "24"
4439
cache: pnpm
4540
registry-url: "https://registry.npmjs.org/"
4641

@@ -66,13 +61,13 @@ jobs:
6661
contents: read # no tag, no Release; just publish
6762
id-token: write # OIDC for npm Trusted Publishing + provenance
6863
steps:
69-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@v6
7065

71-
- uses: pnpm/action-setup@v4
66+
- uses: pnpm/action-setup@v6
7267

73-
- uses: actions/setup-node@v4
68+
- uses: actions/setup-node@v6
7469
with:
75-
node-version: "22"
70+
node-version: "24"
7671
cache: pnpm
7772
registry-url: "https://registry.npmjs.org/"
7873

packages/cli/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ npx skills add modelstudioai/skills --all -g
7979
## Quick Start
8080

8181
```bash
82-
# Authenticate
82+
# Authenticate, recommended
83+
bl auth login --console
84+
85+
# Or authenticate with an API key
8386
bl auth login --api-key sk-xxxxx
8487

8588
# Chat with Qwen

tools/release/check.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function runCheck() {
3333
step("build bailian-cli");
3434
run("pnpm", ["--filter", "bailian-cli", "run", "build"]);
3535

36-
step("pack + scan (publint, attw, gitleaks)");
36+
step("pack + scan (publint, gitleaks)");
3737
packAndScan({ log });
3838

3939
log("\nrelease check passed.");

tools/release/lib/pack-scan.mjs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ function extractTarball(tarball, tempDir, key) {
1313
return extractDir;
1414
}
1515

16-
/**
17-
* pnpm pack each package, then run publint / attw / gitleaks on the tarball
18-
* or the extracted directory. attw only runs on packages that declare types.
19-
*/
2016
export function packAndScan({ log }) {
2117
const tempDir = mkdtempSync(join(tmpdir(), "bailian-release-"));
2218
try {
@@ -29,11 +25,6 @@ export function packAndScan({ log }) {
2925
log(`publint ${pkg.name}`);
3026
run("npx", ["--yes", "publint", extractDir]);
3127

32-
if (json.types) {
33-
log(`attw ${pkg.name}`);
34-
run("npx", ["--yes", "@arethetypeswrong/cli", "--pack", extractDir]);
35-
}
36-
3728
log(`gitleaks ${pkg.name}`);
3829
run("gitleaks", ["detect", "--source", extractDir, "--no-git", "--redact"]);
3930
}

0 commit comments

Comments
 (0)