Skip to content

Commit

Permalink
chore: add release script (#2088)
Browse files Browse the repository at this point in the history
* chore: add release script

* chore: log version after publish

* ci: add dingtalk group 4 release notify
  • Loading branch information
PeachScript committed Apr 28, 2024
1 parent 9e34353 commit 3566975
Show file tree
Hide file tree
Showing 9 changed files with 402 additions and 33 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release-notify.yml
Expand Up @@ -47,3 +47,16 @@ jobs:
"text": "# [${{github.event.release.tag_name}}](${{github.event.release.html_url}}) released:\n${{github.event.release.body}}"
}
}
- name: Notify for the Dingtalk group 4
uses: zcong1993/actions-ding@master
with:
dingToken: ${{ secrets.DINGTALK_GROUP4_TOKEN }}
secret: ${{ secrets.DINGTALK_GROUP4_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "${{github.event.release.tag_name}} released",
"text": "# [${{github.event.release.tag_name}}](${{github.event.release.html_url}}) released:\n${{github.event.release.body}}"
}
}
9 changes: 6 additions & 3 deletions package.json
Expand Up @@ -50,7 +50,7 @@
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
"prepare": "husky install && npm run build && npm run build:suites && node ./bin/dumi.js setup && npm run docs:sync",
"prepublishOnly": "npm run build",
"release": "esno scripts/release.ts",
"test": "vitest",
"vercel:build": "npm run docs:build",
"vercel:install": "./scripts/vercel-install.sh"
Expand Down Expand Up @@ -94,7 +94,7 @@
"copy-to-clipboard": "^3.3.3",
"deepmerge": "^4.3.1",
"dumi-afx-deps": "^1.0.0-alpha.19",
"dumi-assets-types": "2.0.0-alpha.0",
"dumi-assets-types": "workspace:*",
"enhanced-resolve": "^5.15.0",
"estree-util-to-js": "^1.2.0",
"estree-util-visit": "^1.2.1",
Expand Down Expand Up @@ -166,8 +166,10 @@
"codesandbox-import-utils": "^2.2.3",
"dumi-theme-mobile": "workspace:*",
"eslint": "^8.46.0",
"esno": "^4.7.0",
"fast-glob": "^3.3.1",
"father": "^4.3.0",
"git-repo-info": "^2.1.1",
"highlight-words-core": "^1.2.2",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
Expand All @@ -179,7 +181,8 @@
"stylelint": "^15.10.2",
"ts-node": "^10.9.1",
"typescript": "~5.0.4",
"vitest": "^0.33.0"
"vitest": "^0.33.0",
"zx": "^7.2.3"
},
"peerDependencies": {
"react": ">=16.8",
Expand Down

0 comments on commit 3566975

Please sign in to comment.