Skip to content

Commit

Permalink
chore(release): 3.6.18 (#1708)
Browse files Browse the repository at this point in the history
New Features

- 添加 Timeline 获取节点信息事件 (#1650)
- List 组件支持自定义 icon 属性 (#1626)
- Card 组件 extra 属性支持 ReactNode (#1684)

Bug Fixes

- 修复 AtAccordion 组件展开高度错误的问题 (#1656)
- 修复 enableNative 属性不存在的问题 (#1654)
- 修复日历组件无法正常加载的问题

Improvements

- yarn 升级到 pnpm
- 完善 CI 流程
- 更新 Taro-UI 文档地址
  • Loading branch information
robinv8 authored Nov 20, 2023
1 parent a4da29b commit fa25aef
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 31 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,23 @@ on:

env:
CI: true
permissions: {}
jobs:
publish:
permissions:
contents: write # to create tags and refs
actions: write # to cancel running workflow (andymckay/cancel-action)
issues: write # to create comment
pull-requests: write # to create comment and so on

name: publish
runs-on: ubuntu-latest

steps:
# Setup
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Node ${{ matrix.node_version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
Expand All @@ -48,10 +49,10 @@ jobs:
# Get commit message
- name: Get commit message
run: |
COMMIT_MESSAGE=$(git log --format=%B -n 1)
echo "commitmsg=${COMMIT_MESSAGE}" >> $GITHUB_ENV
COMMIT_MESSAGE=$(git log --format=%s -n 1)
echo "COMMIT_MESSAGE=${COMMIT_MESSAGE}" >> $GITHUB_ENV
- name: Show commit message
run : echo "$commitmsg"
run : echo "$COMMIT_MESSAGE"

- name: Commit message compliance verification
if: startsWith( env.COMMIT_MESSAGE , 'chore(release):' ) != true
Expand All @@ -74,15 +75,15 @@ jobs:

# Define ${CURRENT_VERSION}
- name: Set Current Version
if: startsWith( env.commitmsg , 'chore(release):' )
if: startsWith( env.COMMIT_MESSAGE , 'chore(release):' )
shell: bash -ex {0}
run: |
CURRENT_VERSION=$(node -p 'require("./packages/taro-ui/package.json").version')
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
# Check git tag
- name: Tag Check
if: startsWith( env.commitmsg , 'chore(release):' )
if: startsWith( env.COMMIT_MESSAGE , 'chore(release):' )
id: tag_check
shell: bash -ex {0}
run: |
Expand Down Expand Up @@ -112,25 +113,26 @@ jobs:
restore-keys: |
${{ runner.os }}-
- name: install
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v2.4.0
with:
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: build
run: pnpm build
run: |
pnpm build
# Git stash
- name: Drop current changes
if: startsWith( env.commitmsg , 'chore(release):' ) && steps.tag_check.outputs.exists_tag == 'false'
if: startsWith( env.COMMIT_MESSAGE , 'chore(release):' ) && steps.tag_check.outputs.exists_tag == 'false'
run: |
git add .
git stash
# Create git tag
- name: Create Git Tag
if: startsWith( env.commitmsg , 'chore(release):' ) && steps.tag_check.outputs.exists_tag == 'false'
if: startsWith( env.COMMIT_MESSAGE , 'chore(release):' ) && steps.tag_check.outputs.exists_tag == 'false'
uses: azu/action-package-version-to-git-tag@v1
with:
version: ${{ env.CURRENT_VERSION }}
Expand All @@ -143,9 +145,9 @@ jobs:
- name: Publish
run: |
if [ '${{ github.event_name }}' == 'pull_request' ] ; then
pnpm publish --registry=https://registry.npmjs.org/ --publish-branch=${{ github.ref }} -r
cd README.md packages/taro-ui & pnpm publish --registry=https://registry.npmjs.org/ --publish-branch=${{ github.ref }} -r
elif [ '${{ github.event_name }}' == 'push' ] ; then
pnpm publish --registry=https://registry.npmjs.org/ --publish-branch=${{ github.ref_name }} -r ${{ env.PUBLISH_PARAMS }}
cd README.md packages/taro-ui & pnpm publish --registry=https://registry.npmjs.org/ --publish-branch=${{ github.ref_name }} -r ${{ env.PUBLISH_PARAMS }}
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -154,7 +156,7 @@ jobs:
# Create relase when event is PR
- name: Create Release
id: create_release
if: startsWith( env.commitmsg , 'chore(release):' ) && steps.tag_check.outputs.exists_tag == 'false' && github.event.pull_request.merged == true
if: startsWith( env.COMMIT_MESSAGE , 'chore(release):' ) && steps.tag_check.outputs.exists_tag == 'false' && github.event.pull_request.merged == true
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "taro-ui",
"description": "UI KIT for Taro",
"author": "O2Team <aotu.io>",
"homepage": "https://taro-ui.aotu.io",
"homepage": "https://taro-ui.taro.zone",
"repository": {
"type": "git",
"url": "[email protected]:nervjs/taro-ui.git"
Expand All @@ -17,7 +17,11 @@
"build:demo": "pnpm --filter=taro-ui-demo build:h5",
"build:doc": "pnpm run build:demo && pnpm --filter=taro-ui-docs build",
"clean": " rimraf **/dist && rimraf **/node_modules",
"prepare": "husky install"
"prepare": "husky install",
"version": "run-s version:*",
"version:release": "pnpm --parallel -r --aggregate-output --filter=./packages/* exec npm version ${npm_package_version}",
"version:git": "git add . && git commit -m \"chore(release): publish ${npm_package_version}\"",
"version:changelog": "conventional-changelog -p angular"
},
"devDependencies": {
"@babel/core": "^7.22.11",
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-ui-demo-rn/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"private": true,
"name": "taro-ui-demo-rn",
"version": "3.1.0-beta.4",
"version": "3.2.0",
"description": "Taro UI demo",
"author": "O2Team <aotu.io>",
"homepage": "https://taro-ui.aotu.io",
"homepage": "https://taro-ui.taro.zone",
"repository": {
"type": "git",
"url": "[email protected]:nervjs/taro-ui.git"
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-ui-demo-rn/src/pages/form/input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,15 @@ export default class Index extends React.Component<IndexProps, IndexState> {
>
{/* <Image
mode='scaleToFill'
src='https://taro-ui.aotu.io/h5/static/images/verification_code.png'
src='https://taro-ui.taro.zone/h5/static/images/verification_code.png'
/> */}
<ImageBackground
style={{
width: Taro.pxTransform(145),
height: Taro.pxTransform(60)
}}
source={{
uri: 'https://taro-ui.aotu.io/h5/static/images/verification_code.png'
uri: 'https://taro-ui.taro.zone/h5/static/images/verification_code.png'
}}
resizeMode='cover'
/>
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-ui-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"private": true,
"name": "taro-ui-demo",
"version": "3.1.0-beta.4",
"version": "3.2.0",
"description": "Taro UI demo",
"author": "O2Team <aotu.io>",
"homepage": "https://taro-ui.aotu.io",
"homepage": "https://taro-ui.taro.zone",
"repository": {
"type": "git",
"url": "[email protected]:nervjs/taro-ui.git"
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-ui-docs/markdown/questions.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ h5: {

## 如何自定义样式?

请查看 [「自定义主题」](https://taro-ui.aotu.io/#/docs/customizetheme) 章节
请查看 [「自定义主题」](https://taro-ui.taro.zone/#/docs/customizetheme) 章节

## 自定义样式为什么没有生效(H5 生效,微信小程序没生效)?

Expand Down
4 changes: 2 additions & 2 deletions packages/taro-ui-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"private": true,
"name": "taro-ui-docs",
"version": "3.0.0-alpha.10",
"version": "3.2.0",
"description": "Taro UI docs",
"author": "O2Team <aotu.io>",
"homepage": "https://taro-ui.aotu.io",
"homepage": "https://taro-ui.taro.zone",
"repository": {
"type": "git",
"url": "[email protected]:nervjs/taro-ui.git"
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "taro-ui",
"version": "3.1.1",
"version": "3.2.0",
"description": "UI KIT for Taro",
"module": "dist/index.esm.js",
"main": "dist/index.js",
Expand All @@ -23,7 +23,7 @@
"rn"
],
"author": "O2Team <aotu.io>",
"homepage": "https://taro-ui.aotu.io",
"homepage": "https://taro-ui.taro.zone",
"repository": {
"type": "git",
"url": "[email protected]:nervjs/taro-ui.git"
Expand Down
6 changes: 3 additions & 3 deletions packages/taro-ui/types/tab-bar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ export interface TabItem {
/**
* icon className 前缀,用于第三方字体图标库,
* 比如想使用'fa fa-clock' 的图标,则传入 iconPrefixClass='fa' iconType='clock',
* 参考[拓展图标库详细](https://taro-ui.aotu.io/#/docs/icon)
* 参考[拓展图标库详细](https://taro-ui.taro.zone/#/docs/icon)
*/
iconPrefixClass?: string
/**
* 未选中时展示的 icon 类型,可扩展第三方字体图标库,
* 参考[拓展图标库详细](https://taro-ui.aotu.io/#/docs/icon)
* 参考[拓展图标库详细](https://taro-ui.taro.zone/#/docs/icon)
*/
iconType?: string
/**
* 选中时展示的 icon 类型,可扩展第三方字体图标库,
* 参考[拓展图标库详细](https://taro-ui.aotu.io/#/docs/icon)
* 参考[拓展图标库详细](https://taro-ui.taro.zone/#/docs/icon)
*/
selectedIconType?: string
/**
Expand Down

0 comments on commit fa25aef

Please sign in to comment.