Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e887c17
chore(release): v3.0.0-beta.13
oasis-cloud Feb 14, 2025
56cb659
chore(release): v3.0.0-beta.13
oasis-cloud Feb 14, 2025
c31bb4e
chore(release): v3.0.0-beta.13
oasis-cloud Feb 14, 2025
90838c4
chore(release): v3.0.0-beta.13
oasis-cloud Feb 14, 2025
d436849
chore(release): v3.0.0-beta.13
oasis-cloud Feb 14, 2025
0750cbe
chore(release): v3.0.0-beta.13
oasis-cloud Feb 14, 2025
b1922e9
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
ba06121
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
9f8e03f
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
a2edf9e
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
0d6fac8
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
f25d029
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
a3f388f
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
8191224
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
bed54ae
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
bee4fca
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
765088b
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
365dffd
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
f9331ec
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
f371dd9
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
3252770
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
c01e634
chore(release): v3.0.0-beta.14
oasis-cloud Feb 14, 2025
b3ad99c
chore(release): v3.0.0-beta.14
oasis-cloud Feb 17, 2025
6d4b386
chore(release): v3.0.0-beta.14
oasis-cloud Feb 17, 2025
39b001c
chore(release): v3.0.0-beta.14
oasis-cloud Feb 17, 2025
629ae25
chore(release): v3.0.0-beta.14
oasis-cloud Feb 17, 2025
8fde874
chore(release): v3.0.0-beta.14
oasis-cloud Feb 17, 2025
f20c211
chore(release): v3.0.0-beta.14
oasis-cloud Feb 17, 2025
1989f86
chore(release): v3.0.0-beta.14
oasis-cloud Feb 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 48 additions & 54 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
@@ -1,80 +1,74 @@
name: Release 3x Beta

on:
push:
pull_request:
# push:
branches:
- feat_v3.x
workflow_dispatch:
Comment on lines 3 to 8
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

工作流触发器变更需要验证

将触发器从 push 改为 pull_request 可能会影响现有的发布流程。请确认:

  1. 团队成员了解新的发布流程
  2. CI/CD 管道仍能按预期工作

🏁 Script executed:

#!/bin/bash
# 检查是否有其他工作流依赖于此工作流
gh workflow list --all | grep -B 2 -A 2 "Release 3x Beta"

# 检查最近的工作流运行状态
gh run list --workflow=release-beta.yml --limit 5

Length of output: 979


工作流触发器配置需要修复

经过验证,通过 gh run list 查看最近 5 次运行均显示失败(失败原因涉及 chore_publish_beta 任务),这表明将触发器从 push 更改为 pull_request 后,CI/CD 管道目前并未按预期工作。请检查以下几点:

  • 检查工作流日志,确认失败原因是否与触发器变更或其它配置问题相关;
  • 验证所有依赖此工作流的配置和权限是否同步更新;
  • 确保团队成员充分了解新的触发器设置和发布流程,并准备好对应的调整措施。

请尽快修正这些问题,确保 beta 版本的发布流程能够顺利进行。


jobs:
release-3x-beta:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
RELEASE_TAG: beta

runs-on: ubuntu-latest
permissions:
contents: write
id-token: write

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Get commit message
run: |
COMMIT_MESSAGE=$(git log --format=%s -n 1)
FILTERED_MESSAGE="${COMMIT_MESSAGE//[^a-zA-Z0-9.()_:, -]/}"
echo "COMMIT_MESSAGE=${FILTERED_MESSAGE}" >> $GITHUB_ENV
- name: Show commit message
run: echo "$COMMIT_MESSAGE"

- name: Commit message compliance verification
if: |
!startsWith( env.COMMIT_MESSAGE , 'chore(release):' ) ||
!contains( env.COMMIT_MESSAGE , '-beta' )
run: echo "ABORT=true" >> $GITHUB_ENV

- name: Get Tag message
if: contains( env.COMMIT_MESSAGE , '-beta')
run: echo "RELEASE_TAG=beta" >> $GITHUB_ENV

# - name: Get commit message
# run: |
# COMMIT_MESSAGE=$(git log --format=%s -n 1)
# FILTERED_MESSAGE="${COMMIT_MESSAGE//[^a-zA-Z0-9.()_:, -]/}"
# echo "COMMIT_MESSAGE=${FILTERED_MESSAGE}" >> $GITHUB_ENV
# - name: Show commit message
# run: echo "$COMMIT_MESSAGE"
#
# - name: Commit message compliance verification
# if: |
# !startsWith( env.COMMIT_MESSAGE , 'chore(release):' ) ||
# !contains( env.COMMIT_MESSAGE , '-beta' )
# run: echo "ABORT=true" >> $GITHUB_ENV
#
# - name: Get Tag message
# if: contains( env.COMMIT_MESSAGE , '-beta')
# run: echo "RELEASE_TAG=beta" >> $GITHUB_ENV
#
- name: Install pnpm
run: npm i -g pnpm@10

- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: '20'
cache: 'pnpm'

- name: Install dependencies
if: env.ABORT != 'true'
run: pnpm install --frozen-lockfile

- name: Run Build
if: env.ABORT != 'true'
run: |
if ! pnpm build; then
echo "构建 nutui-react 失败"
exit 1
fi
if ! pnpm build:taro; then
echo "构建 nutui-react-taro 失败"
exit 1
fi
# - name: Install dependencies
# if: env.ABORT != 'true'
# run: pnpm install --frozen-lockfile
#
# - name: Run Build
# if: env.ABORT != 'true'
# run: |
# if ! pnpm build; then
# echo "构建 nutui-react 失败"
# exit 1
# fi
# if ! pnpm build:taro; then
# echo "构建 nutui-react-taro 失败"
# exit 1
# fi

- name: Run Release @nutui/nutui-react
if: env.ABORT != 'true'
run: |
cd ./release/h5 || exit 1
if ! npm publish --tag ${{ env.RELEASE_TAG }}; then
echo "发布 @nutui/nutui-react 失败"
exit 1
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: pnpm --dir ./release/h5 publish:beta
run: echo "${{ secrets.NPM_TOKEN }}"

- name: Run Releases @nutui/nutui-react-taro
if: env.ABORT != 'true'
run: |
cd ./release/taro || exit 1
if ! npm publish --tag ${{ env.RELEASE_TAG }}; then
echo "发布 @nutui/nutui-react-taro 失败"
exit 1
fi
# - name: Run Releases @nutui/nutui-react-taro
# if: env.ABORT != 'true'
# run: pnpm --dir ./release/taro publish:beta
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nutui/nutui-react-taro",
"version": "3.0.0-beta.13",
"version": "3.0.0-beta.14",
"style": "dist/style.css",
"main": "dist/nutui.react.umd.js",
"module": "dist/es/packages/nutui.react.build.js",
Expand Down
4 changes: 4 additions & 0 deletions scripts/build-taro.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ function generateReleasePackageJson() {
main: packageJson.main,
module: packageJson.module,
typings: packageJson.typings,
scripts: {
"publish:beta": "npm publish --tag=beta --access public --no-git-checks",
"publish:latest": "npm publish --access public --no-git-checks"
},
sideEffects: packageJson.sideEffects,
description: packageJson.description,
keywords: packageJson.keywords,
Expand Down
4 changes: 4 additions & 0 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ function generateReleasePackageJson() {
main: packageJson.main,
module: packageJson.module,
typings: packageJson.typings,
scripts: {
"publish:beta": "npm publish --tag=beta --access public --no-git-checks",
"publish:latest": "npm publish --access public --no-git-checks"
},
sideEffects: packageJson.sideEffects,
description: packageJson.description,
keywords: packageJson.keywords,
Expand Down
1 change: 0 additions & 1 deletion src/packages/configprovider/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ export type NutCSSVariables =
| 'nutuiPickerTitleCancelFontSize'
| 'nutuiPickerTitleOkColor'
| 'nutuiPickerTitleOkFontSize'
| 'nutuiPickerListHeight'
| 'nutuiPickerItemHeight'
| 'nutuiPickerItemTextColor'
| 'nutuiPickerItemTextFontSize'
Expand Down
Loading