Skip to content

Commit 69fd9c9

Browse files
committed
ci: 新增发布ci流程
1 parent 42a1568 commit 69fd9c9

4 files changed

Lines changed: 80 additions & 1636 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Publish
33
on:
44
push:
55
branches:
6-
- master
6+
- __master__ # 暂时不运行
77
paths:
88
- 'package.json'
99
- '.github/workflows/build-and-publish.yml'
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release Please
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: google-github-actions/release-please-action@v3
11+
with:
12+
token: ${{ secrets.GITHUB_TOKEN }}
13+
release-type: 'node' # 针对 Node.js 项目
14+
package-name: 'prettier-plugin-lint-md' # 与 package.json 名称一致
15+
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false}]'

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,14 @@
2525
},
2626
"license": "MIT",
2727
"type": "module",
28-
"main": "./dist/prettier-plugin-lint-md.cjs",
28+
"main": "./dist/prettier-plugin-lint-md.js",
2929
"module": "./dist/prettier-plugin-lint-md.js",
3030
"types": "./dist/index.d.ts",
3131
"files": [
3232
"dist"
3333
],
3434
"devDependencies": {
3535
"@eslint/js": "^9.6.0",
36-
"commit-and-tag-version": "^12.4.1",
37-
"conventional-changelog-cli": "^5.0.0",
3836
"eslint": "9.x",
3937
"globals": "^15.8.0",
4038
"prettier": "^3.3.2",
@@ -48,9 +46,7 @@
4846
"scripts": {
4947
"build": "vite build",
5048
"build-watch": "vite build -w",
51-
"test": "vitest",
52-
"changelog": "conventional-changelog -p -i CHANGELOG.md -s",
53-
"release": "commit-and-tag-version"
49+
"test": "vitest"
5450
},
5551
"dependencies": {
5652
"@lint-md/core": "^2.0.0"

0 commit comments

Comments
 (0)