-
Notifications
You must be signed in to change notification settings - Fork 294
chore(release): v3.0.0-beta.13 #2993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
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 56cb659
chore(release): v3.0.0-beta.13
oasis-cloud c31bb4e
chore(release): v3.0.0-beta.13
oasis-cloud 90838c4
chore(release): v3.0.0-beta.13
oasis-cloud d436849
chore(release): v3.0.0-beta.13
oasis-cloud 0750cbe
chore(release): v3.0.0-beta.13
oasis-cloud b1922e9
chore(release): v3.0.0-beta.14
oasis-cloud ba06121
chore(release): v3.0.0-beta.14
oasis-cloud 9f8e03f
chore(release): v3.0.0-beta.14
oasis-cloud a2edf9e
chore(release): v3.0.0-beta.14
oasis-cloud 0d6fac8
chore(release): v3.0.0-beta.14
oasis-cloud f25d029
chore(release): v3.0.0-beta.14
oasis-cloud a3f388f
chore(release): v3.0.0-beta.14
oasis-cloud 8191224
chore(release): v3.0.0-beta.14
oasis-cloud bed54ae
chore(release): v3.0.0-beta.14
oasis-cloud bee4fca
chore(release): v3.0.0-beta.14
oasis-cloud 765088b
chore(release): v3.0.0-beta.14
oasis-cloud 365dffd
chore(release): v3.0.0-beta.14
oasis-cloud f9331ec
chore(release): v3.0.0-beta.14
oasis-cloud f371dd9
chore(release): v3.0.0-beta.14
oasis-cloud 3252770
chore(release): v3.0.0-beta.14
oasis-cloud c01e634
chore(release): v3.0.0-beta.14
oasis-cloud b3ad99c
chore(release): v3.0.0-beta.14
oasis-cloud 6d4b386
chore(release): v3.0.0-beta.14
oasis-cloud 39b001c
chore(release): v3.0.0-beta.14
oasis-cloud 629ae25
chore(release): v3.0.0-beta.14
oasis-cloud 8fde874
chore(release): v3.0.0-beta.14
oasis-cloud f20c211
chore(release): v3.0.0-beta.14
oasis-cloud 1989f86
chore(release): v3.0.0-beta.14
oasis-cloud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | ||
|
|
||
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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可能会影响现有的发布流程。请确认:🏁 Script executed:
Length of output: 979
工作流触发器配置需要修复
经过验证,通过
gh run list查看最近 5 次运行均显示失败(失败原因涉及chore_publish_beta任务),这表明将触发器从push更改为pull_request后,CI/CD 管道目前并未按预期工作。请检查以下几点:请尽快修正这些问题,确保 beta 版本的发布流程能够顺利进行。