From 032e9cc0cf6df73bf7d4603a351eedc56d749db5 Mon Sep 17 00:00:00 2001 From: luojiyin Date: Sun, 13 Sep 2026 19:13:40 +0800 Subject: [PATCH 1/2] chore(release): prepare cli 2.4.0 npm publish --- .github/workflows/release.yml | 5 +++++ CHANGELOG.md | 17 +++++++++++++++++ package.json | 4 ++-- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b4d5d75..d505f93 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,7 @@ on: permissions: contents: write + id-token: write concurrency: group: release-${{ github.ref }} @@ -21,6 +22,7 @@ jobs: - uses: actions/setup-node@v6.3.0 with: node-version: 22 + registry-url: https://registry.npmjs.org - name: Verify tag version shell: bash @@ -42,6 +44,9 @@ jobs: shell: bash run: echo "file=$(npm pack)" >> "${GITHUB_OUTPUT}" + - name: Publish package + run: npm publish --provenance --access public + - name: Create GitHub Release env: GH_TOKEN: ${{ github.token }} diff --git a/CHANGELOG.md b/CHANGELOG.md index eb7a429..8f92bd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [2.4.0](https://github.com/lint-md/cli/compare/v2.3.1...v2.4.0) (2026-09-13) + +### Dependencies + +- upgrade `@lint-md/core` from `^2.5.0` to `^2.5.2` + +### Performance Improvements + +- compare Piscina and direct worker execution in the benchmark +- measure the built CLI in the benchmark + +### Refactoring + +- use the options-based `lintMarkdown()` API in the worker +- sanitize configuration paths in error messages +- consume canonical diagnostics and summaries from Core + ## [2.3.1](https://github.com/lint-md/cli/compare/v2.3.0...v2.3.1) (2026-09-01) ### Performance Improvements diff --git a/package.json b/package.json index 4d64085..c0b5da1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lint-md/cli", - "version": "2.3.1", + "version": "2.4.0", "description": "CLI tool to lint your markdown file for Chinese.", "bin": { "lint-md": "lib/src/lint-md.js" @@ -54,7 +54,7 @@ ] }, "dependencies": { - "@lint-md/core": "^2.5.0", + "@lint-md/core": "^2.5.2", "chalk": "^4", "commander": "^9.4.1", "glob": "^13.0.6", From bb87637124077a9b2248de7dbc09122ce2593f0e Mon Sep 17 00:00:00 2001 From: luojiyin Date: Sun, 13 Sep 2026 19:17:42 +0800 Subject: [PATCH 2/2] revert(release): keep npm publishing manual --- .github/workflows/release.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d505f93..b4d5d75 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,6 @@ on: permissions: contents: write - id-token: write concurrency: group: release-${{ github.ref }} @@ -22,7 +21,6 @@ jobs: - uses: actions/setup-node@v6.3.0 with: node-version: 22 - registry-url: https://registry.npmjs.org - name: Verify tag version shell: bash @@ -44,9 +42,6 @@ jobs: shell: bash run: echo "file=$(npm pack)" >> "${GITHUB_OUTPUT}" - - name: Publish package - run: npm publish --provenance --access public - - name: Create GitHub Release env: GH_TOKEN: ${{ github.token }}