-
Notifications
You must be signed in to change notification settings - Fork 294
chore: release package via ci #2982
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
Merged
Merged
Changes from 40 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
81e49f6
chore: release package via ci
oasis-cloud aee957f
chore: release package via ci
oasis-cloud 6a63d0f
chore: release package via ci
oasis-cloud b1e3750
chore: release package via ci
oasis-cloud b6e32ca
chore: release package via ci
oasis-cloud 3c509e1
chore: release package via ci
oasis-cloud 4ee850e
chore: release package via ci
oasis-cloud c29fcca
chore: release package via ci
oasis-cloud 123c17e
chore: release package via ci
oasis-cloud 7b5eb81
chore: 测试手动执行
oasis-cloud 59f4a3b
chore: 测试手动执行
oasis-cloud 578ad3e
chore: 测试手动执行
oasis-cloud d39c0f6
chore: 测试手动执行
oasis-cloud da96a90
chore: 测试手动执行
oasis-cloud 0586197
chore: 测试手动执行
oasis-cloud 4c42296
chore: 测试手动执行
oasis-cloud 761927b
chore: 测试手动执行
oasis-cloud 7bebe36
chore: 测试手动执行
oasis-cloud bbe6ae3
chore: 测试手动执行
oasis-cloud 22cbc88
chore: 测试beta
oasis-cloud 8412fd7
chore(release): v3.0.0-beta.12
oasis-cloud 17fbacb
chore(release): v3.0.0-beta.12
oasis-cloud acb8b58
chore(release): v3.0.0-beta.12
oasis-cloud 3a7955f
chore(release): v3.0.0-beta.12
oasis-cloud 661b7a2
chore(release): v3.0.0-beta.12
oasis-cloud 542c53a
chore(release): v3.0.0-beta.12
oasis-cloud e9227b9
chore(release): v3.0.0-beta.12
oasis-cloud 8eec51f
chore(release): v3.0.0-beta.12
oasis-cloud 6c8a839
chore(release): v3.0.0-beta.12
oasis-cloud 38beddf
chore(release): v3.0.0-beta.12
oasis-cloud 46cf9e8
chore(release): v3.0.0-beta.12
oasis-cloud 959019b
chore(release): v3.0.0-beta.12
oasis-cloud efea6cd
chore(release): v3.0.0-beta.12
oasis-cloud 4798d00
chore(release): v3.0.0-beta.12
oasis-cloud 3e3b0d9
chore(release): v3.0.0-beta.12
oasis-cloud e4a8d58
chore(release): v3.0.0-beta.12
oasis-cloud 0419a9f
fix: review
oasis-cloud d5b1d9d
fix: review
oasis-cloud 8f16cea
chore(release): v3.0.0-beta.12
oasis-cloud d387997
chore(release): v3.0.0-beta.12
oasis-cloud 27dd1f9
chore: remove --dry-run
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 |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| name: Release 3x Beta | ||
|
|
||
| on: | ||
| # 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 | ||
| 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: Install pnpm | ||
| run: npm install -g pnpm@v9 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| if: env.ABORT != 'true' | ||
| run: pnpm install --no-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 --dry-run --tag ${{ env.RELEASE_TAG }}; then | ||
| echo "发布 @nutui/nutui-react 失败" | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Run Releases @nutui/nutui-react-taro | ||
| if: env.ABORT != 'true' | ||
| run: | | ||
| cd ./release/taro || exit 1 | ||
| if ! npm publish --dry-run --tag ${{ env.RELEASE_TAG }}; then | ||
| echo "发布 @nutui/nutui-react-taro 失败" | ||
| exit 1 | ||
| fi | ||
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 |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| name: Release 3.x | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - v3.* | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| release-3x: | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
| NPM_CONFIG_PROVENANCE: true | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install pnpm | ||
| run: npm install -g pnpm@v9 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --no-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 --dry-run --tag ${{ env.RELEASE_TAG }}; then | ||
| echo "发布 @nutui/nutui-react 失败" | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Run Releases @nutui/nutui-react-taro | ||
| if: env.ABORT != 'true' | ||
| run: | | ||
| cd ./release/taro || exit 1 | ||
| if ! npm publish --dry-run --tag ${{ env.RELEASE_TAG }}; then | ||
| echo "发布 @nutui/nutui-react-taro 失败" | ||
| exit 1 | ||
| fi | ||
oasis-cloud marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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 |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ node_modules | |
| .npmrc | ||
| /dist | ||
| /dist-demo | ||
| /release | ||
| /libs | ||
| /jd/upload.js | ||
| # yarn.lock | ||
|
|
||
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.
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.
Uh oh!
There was an error while loading. Please reload this page.