Skip to content

Commit

Permalink
Merge pull request #15 from hankliu62/docs
Browse files Browse the repository at this point in the history
Merge branch `docs` into `master`
  • Loading branch information
hankliu62 committed Apr 22, 2024
2 parents b3108e2 + 4b59a9f commit c1db886
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 6 deletions.
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
time: '21:00'
open-pull-requests-limit: 10
ignore:
- dependency-name: '@types/react-dom'
versions:
- 18.2.0
- dependency-name: '@types/react'
versions:
- 18.2.0
- dependency-name: react
versions:
- 18.2.0
- dependency-name: less
versions:
- 4.1.0
8 changes: 5 additions & 3 deletions .github/workflows/component-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
branches:
# 触发ci/cd的代码分支
- master
pull_request:
branches: [ master ]

jobs:
setup:
Expand Down Expand Up @@ -91,8 +89,12 @@ jobs:
- name: 打包 🏗️
run: npm run compile

- name: 从 package.json 是否需要发布
id: version
run: echo "PUBLISHED=$(node -p 'require(`./package.json`).version')" >> $GITHUB_ENV
# 发布
- name: 发布 🚀
if: ${{ env.VERSION }} == 'true'
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -142,7 +144,7 @@ jobs:

- name: 从 package.json 中获得版本 ⭐
id: version
run: echo "VERSION=$(node -p 'require(`./package.json`).version')" >> $GITHUB_ENV
run: echo "VERSION=$(node -p 'require(`./package.json`).published')" >> $GITHUB_ENV

- name: 提交 Tag 🏄
id: tag
Expand Down
1 change: 1 addition & 0 deletions docs/react/contributing.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./contributing.zh-CN.md"></embed>
1 change: 1 addition & 0 deletions docs/react/customize-theme-variable.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./customize-theme-variable.zh-CN.md"></embed>
1 change: 1 addition & 0 deletions docs/react/customize-theme.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./customize-theme.zh-CN.md"></embed>
1 change: 1 addition & 0 deletions docs/react/faq.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./faq.zh-CN.md"></embed>
1 change: 1 addition & 0 deletions docs/react/getting-started.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./getting-started.zh-CN.md"></embed>
1 change: 1 addition & 0 deletions docs/react/i18n.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./i18n.zh-CN.md"></embed>
1 change: 1 addition & 0 deletions docs/react/introduce.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./introduce.zh-CN.md"></embed>
1 change: 1 addition & 0 deletions docs/react/practical-projects.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./practical-projects.zh-CN.md"></embed>
1 change: 1 addition & 0 deletions docs/react/recommendation.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./recommendation.zh-CN.md"></embed>
1 change: 1 addition & 0 deletions docs/react/replace-moment.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./replace-moment.zh-CN.md"></embed>
1 change: 1 addition & 0 deletions docs/react/use-in-typescript.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./use-in-typescript.zh-CN.md"></embed>
1 change: 1 addition & 0 deletions docs/react/use-with-create-react-app.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<embed src="./use-with-create-react-app.zh-CN.md"></embed>
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"scripts": {
"start": "antd-tools run clean && cross-env NODE_ENV=development NODE_OPTIONS=--openssl-legacy-provider concurrently \"bisheng start -c ./site/bisheng.config.js\"",
"clean": "antd-tools run clean && rm -rf es lib coverage dist report.html",
"compile": "npm run clean && antd-tools run compile && cross-env NODE_OPTIONS=--openssl-legacy-provider antd-tools run dist",
"dist": "antd-tools run dist",
"compile": "npm run clean && antd-tools run compile && npm run dist",
"dist": " cross-env NODE_OPTIONS=--openssl-legacy-provider antd-tools run dist",
"prepublishOnlyNot": "npm run compile",
"site": "rimraf _site && cross-env NODE_OPTIONS=--max_old_space_size=4096 NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production OUTPUT=_website bisheng build --ssr -c ./site/bisheng.config.js",
"less": "lessc --js --modify-var=\"root-entry-name=variable\" --global-var=\"root-entry-name=variable\" ./components/button/style/index.less ./components/button/style/index.css"
Expand Down Expand Up @@ -165,5 +165,6 @@
"peerDependencies": {
"react": ">=18.2.0",
"react-dom": ">=18.2.0"
}
},
"published": false
}

0 comments on commit c1db886

Please sign in to comment.