From e887c17e3944a349460bda26ce208a2e3bd52376 Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 17:23:09 +0800 Subject: [PATCH 01/29] chore(release): v3.0.0-beta.13 --- .github/workflows/release-beta.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 99f6c858e1..74c5d47d59 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -1,7 +1,8 @@ name: Release 3x Beta on: - push: + pull_request: +# push: branches: - feat_v3.x workflow_dispatch: @@ -9,8 +10,6 @@ on: jobs: release-3x-beta: env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_CONFIG_PROVENANCE: true RELEASE_TAG: beta runs-on: ubuntu-latest @@ -18,6 +17,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: Get commit message run: | @@ -69,6 +69,9 @@ jobs: echo "发布 @nutui/nutui-react 失败" exit 1 fi + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_CONFIG_PROVENANCE: true - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' @@ -77,4 +80,7 @@ jobs: if ! npm publish --tag ${{ env.RELEASE_TAG }}; then echo "发布 @nutui/nutui-react-taro 失败" exit 1 - fi \ No newline at end of file + fi + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_CONFIG_PROVENANCE: true \ No newline at end of file From 56cb6596422e99e26c735361cf490f7971b834ff Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 17:44:22 +0800 Subject: [PATCH 02/29] chore(release): v3.0.0-beta.13 --- .github/workflows/release-beta.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 74c5d47d59..a6f4bd37de 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -44,6 +44,7 @@ jobs: with: node-version: '20' cache: 'pnpm' + registry-url: 'https://registry.npmjs.org' - name: Install dependencies if: env.ABORT != 'true' @@ -63,24 +64,25 @@ jobs: - name: Run Release @nutui/nutui-react if: env.ABORT != 'true' + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_CONFIG_PROVENANCE: 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 }} - NPM_CONFIG_PROVENANCE: true + - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_CONFIG_PROVENANCE: true run: | cd ./release/taro || exit 1 if ! npm publish --tag ${{ env.RELEASE_TAG }}; then echo "发布 @nutui/nutui-react-taro 失败" exit 1 fi - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_CONFIG_PROVENANCE: true \ No newline at end of file From c31bb4e064d85f53bcfabec2b15d291745021ef3 Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 18:02:27 +0800 Subject: [PATCH 03/29] chore(release): v3.0.0-beta.13 --- .github/workflows/release-beta.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index a6f4bd37de..50588e5c2d 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -42,9 +42,9 @@ jobs: - uses: actions/setup-node@v4 with: + registry-url: 'https://registry.npmjs.org' node-version: '20' cache: 'pnpm' - registry-url: 'https://registry.npmjs.org' - name: Install dependencies if: env.ABORT != 'true' @@ -63,10 +63,9 @@ jobs: fi - name: Run Release @nutui/nutui-react - if: env.ABORT != 'true' env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_CONFIG_PROVENANCE: true + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + if: env.ABORT != 'true' run: | cd ./release/h5 || exit 1 if ! npm publish --tag ${{ env.RELEASE_TAG }}; then @@ -76,10 +75,9 @@ jobs: - name: Run Releases @nutui/nutui-react-taro - if: env.ABORT != 'true' env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_CONFIG_PROVENANCE: true + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + if: env.ABORT != 'true' run: | cd ./release/taro || exit 1 if ! npm publish --tag ${{ env.RELEASE_TAG }}; then From 90838c43f130bcb0e6c4ad512872a753706ef326 Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 18:37:25 +0800 Subject: [PATCH 04/29] chore(release): v3.0.0-beta.13 --- .github/workflows/release-beta.yml | 9 ++++----- src/packages/configprovider/types.ts | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 50588e5c2d..3bc3330fab 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -63,8 +63,6 @@ jobs: fi - name: Run Release @nutui/nutui-react - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} if: env.ABORT != 'true' run: | cd ./release/h5 || exit 1 @@ -72,11 +70,10 @@ jobs: echo "发布 @nutui/nutui-react 失败" exit 1 fi - - - - name: Run Releases @nutui/nutui-react-taro env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + + - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' run: | cd ./release/taro || exit 1 @@ -84,3 +81,5 @@ jobs: echo "发布 @nutui/nutui-react-taro 失败" exit 1 fi + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/src/packages/configprovider/types.ts b/src/packages/configprovider/types.ts index e5babad739..5ba2151ea5 100644 --- a/src/packages/configprovider/types.ts +++ b/src/packages/configprovider/types.ts @@ -189,7 +189,6 @@ export type NutCSSVariables = | 'nutuiPickerTitleCancelFontSize' | 'nutuiPickerTitleOkColor' | 'nutuiPickerTitleOkFontSize' - | 'nutuiPickerListHeight' | 'nutuiPickerItemHeight' | 'nutuiPickerItemTextColor' | 'nutuiPickerItemTextFontSize' From d4368499032ac5c5572ded0c6b483544174826f5 Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 18:44:03 +0800 Subject: [PATCH 05/29] chore(release): v3.0.0-beta.13 --- .github/workflows/release-beta.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 3bc3330fab..b497d8c2c9 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -11,7 +11,7 @@ jobs: release-3x-beta: env: RELEASE_TAG: beta - + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -70,8 +70,6 @@ jobs: echo "发布 @nutui/nutui-react 失败" exit 1 fi - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' @@ -81,5 +79,4 @@ jobs: echo "发布 @nutui/nutui-react-taro 失败" exit 1 fi - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + From 0750cbe0a431cec818aaa0654fe1f97e4d17111b Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 18:51:26 +0800 Subject: [PATCH 06/29] chore(release): v3.0.0-beta.13 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6ae770f08e..49e38230c6 100644 --- a/package.json +++ b/package.json @@ -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", From b1922e907edd96d70cd1a74366292b877bfdfaf4 Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 19:02:12 +0800 Subject: [PATCH 07/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index b497d8c2c9..77976d23ad 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -66,7 +66,7 @@ jobs: if: env.ABORT != 'true' run: | cd ./release/h5 || exit 1 - if ! npm publish --tag ${{ env.RELEASE_TAG }}; then + if ! npm publish --tag ${{ env.RELEASE_TAG }} --access public --no-git-checks; then echo "发布 @nutui/nutui-react 失败" exit 1 fi @@ -75,7 +75,7 @@ jobs: if: env.ABORT != 'true' run: | cd ./release/taro || exit 1 - if ! npm publish --tag ${{ env.RELEASE_TAG }}; then + if ! npm publish --tag ${{ env.RELEASE_TAG }} --access public --no-git-checks; then echo "发布 @nutui/nutui-react-taro 失败" exit 1 fi From ba06121252a975fdd23f1913d597f8cf1f8f143c Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 19:13:01 +0800 Subject: [PATCH 08/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 77976d23ad..ff89a67ac2 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -12,6 +12,8 @@ jobs: env: RELEASE_TAG: beta NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NPM_CONFIG_PROVENANCE: true + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 9f8e03fd3cc322ae151a5c89c8e6a173ddabe83c Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 19:16:06 +0800 Subject: [PATCH 09/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index ff89a67ac2..c2d22528d2 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -6,6 +6,8 @@ on: branches: - feat_v3.x workflow_dispatch: +permissions: + id-token: write jobs: release-3x-beta: From a2edf9e288c2f13562e6ba65fa3c0c5930a448ba Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 19:27:42 +0800 Subject: [PATCH 10/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index c2d22528d2..5e8a79e79a 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -6,8 +6,6 @@ on: branches: - feat_v3.x workflow_dispatch: -permissions: - id-token: write jobs: release-3x-beta: @@ -17,6 +15,9 @@ jobs: NPM_CONFIG_PROVENANCE: true runs-on: ubuntu-latest + permissions: + contents: write + id-token: write steps: - uses: actions/checkout@v4 with: From 0d6fac80740e1897a7deb4f076b396459cceb4be Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 19:31:45 +0800 Subject: [PATCH 11/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 5e8a79e79a..4f65021e9a 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -12,7 +12,6 @@ jobs: env: RELEASE_TAG: beta NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - NPM_CONFIG_PROVENANCE: true runs-on: ubuntu-latest permissions: @@ -75,6 +74,8 @@ jobs: echo "发布 @nutui/nutui-react 失败" exit 1 fi + env: + NPM_CONFIG_PROVENANCE: true - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' @@ -84,4 +85,5 @@ jobs: echo "发布 @nutui/nutui-react-taro 失败" exit 1 fi - + env: + NPM_CONFIG_PROVENANCE: true From f25d02933e8c2e9aaa0432d382214f2faed173f2 Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 19:34:21 +0800 Subject: [PATCH 12/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 4f65021e9a..27e7ceb3c8 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -70,20 +70,17 @@ jobs: if: env.ABORT != 'true' run: | cd ./release/h5 || exit 1 - if ! npm publish --tag ${{ env.RELEASE_TAG }} --access public --no-git-checks; then + if ! npm publish --tag ${{ env.RELEASE_TAG }}; then echo "发布 @nutui/nutui-react 失败" exit 1 fi - env: - NPM_CONFIG_PROVENANCE: true - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' run: | cd ./release/taro || exit 1 - if ! npm publish --tag ${{ env.RELEASE_TAG }} --access public --no-git-checks; then + if ! npm publish --tag ${{ env.RELEASE_TAG }}; then echo "发布 @nutui/nutui-react-taro 失败" exit 1 fi - env: - NPM_CONFIG_PROVENANCE: true + From a3f388f25577616bbca6f80770d07f736b0739a9 Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 19:46:02 +0800 Subject: [PATCH 13/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 27e7ceb3c8..4500b368e7 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -70,7 +70,7 @@ jobs: if: env.ABORT != 'true' run: | cd ./release/h5 || exit 1 - if ! npm publish --tag ${{ env.RELEASE_TAG }}; then + if ! npm publish --tag ${{ env.RELEASE_TAG }} --access public; then echo "发布 @nutui/nutui-react 失败" exit 1 fi @@ -79,7 +79,7 @@ jobs: if: env.ABORT != 'true' run: | cd ./release/taro || exit 1 - if ! npm publish --tag ${{ env.RELEASE_TAG }}; then + if ! npm publish --tag ${{ env.RELEASE_TAG }} --access public; then echo "发布 @nutui/nutui-react-taro 失败" exit 1 fi From 8191224d88ef4bb0fd5820c5557cbac393f7e0bc Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 19:52:01 +0800 Subject: [PATCH 14/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 4500b368e7..bfa8dc3e09 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest permissions: - contents: write + contents: read id-token: write steps: - uses: actions/checkout@v4 @@ -68,19 +68,9 @@ jobs: - name: Run Release @nutui/nutui-react if: env.ABORT != 'true' - run: | - cd ./release/h5 || exit 1 - if ! npm publish --tag ${{ env.RELEASE_TAG }} --access public; then - echo "发布 @nutui/nutui-react 失败" - exit 1 - fi + run: cd ./release/h5 && npm publish --tag ${{ env.RELEASE_TAG }} --access public - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' - run: | - cd ./release/taro || exit 1 - if ! npm publish --tag ${{ env.RELEASE_TAG }} --access public; then - echo "发布 @nutui/nutui-react-taro 失败" - exit 1 - fi + run: cd ./release/taro && npm publish --tag ${{ env.RELEASE_TAG }} --access public From bed54aebb5ad5cbad65699cf7a09d7aee20a44c8 Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 19:57:34 +0800 Subject: [PATCH 15/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index bfa8dc3e09..fcc265a71a 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -68,9 +68,11 @@ jobs: - name: Run Release @nutui/nutui-react if: env.ABORT != 'true' - run: cd ./release/h5 && npm publish --tag ${{ env.RELEASE_TAG }} --access public + working-directory: ./release/h5 + run: npm publish --tag ${{ env.RELEASE_TAG }} --access public - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' - run: cd ./release/taro && npm publish --tag ${{ env.RELEASE_TAG }} --access public + working-directory: ./release/taro + run: npm publish --tag ${{ env.RELEASE_TAG }} --access public From bee4fca6686fbd06903425e63e65b6b75c1b2bcc Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 19:59:58 +0800 Subject: [PATCH 16/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index fcc265a71a..3c415a5808 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -9,9 +9,7 @@ on: jobs: release-3x-beta: - env: - RELEASE_TAG: beta - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + runs-on: ubuntu-latest permissions: @@ -70,9 +68,14 @@ jobs: if: env.ABORT != 'true' working-directory: ./release/h5 run: npm publish --tag ${{ env.RELEASE_TAG }} --access public + env: + RELEASE_TAG: beta + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' working-directory: ./release/taro run: npm publish --tag ${{ env.RELEASE_TAG }} --access public - + env: + RELEASE_TAG: beta + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} From 765088be7d4607e5b0732b6edf311ef36c356d9a Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 20:08:12 +0800 Subject: [PATCH 17/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 10 ++++------ scripts/build-taro.mjs | 4 ++++ scripts/build.mjs | 4 ++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 3c415a5808..19f29fa53c 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -66,16 +66,14 @@ jobs: - name: Run Release @nutui/nutui-react if: env.ABORT != 'true' - working-directory: ./release/h5 - run: npm publish --tag ${{ env.RELEASE_TAG }} --access public + run: pnpm --dir ./release/h5 publish:beta --access public --no-git-checks env: - RELEASE_TAG: beta NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NPM_CONFIG_PROVENANCE: true - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' - working-directory: ./release/taro - run: npm publish --tag ${{ env.RELEASE_TAG }} --access public + run: pnpm --dir ./release/taro publish:beta --access public --no-git-checks env: - RELEASE_TAG: beta NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NPM_CONFIG_PROVENANCE: true diff --git a/scripts/build-taro.mjs b/scripts/build-taro.mjs index f9594c14f8..63e6f0d3bc 100644 --- a/scripts/build-taro.mjs +++ b/scripts/build-taro.mjs @@ -421,6 +421,10 @@ function generateReleasePackageJson() { main: packageJson.main, module: packageJson.module, typings: packageJson.typings, + scripts: { + "publish:beta": "npm publish --tag=beta", + "publish:latest": "npm publish" + }, sideEffects: packageJson.sideEffects, description: packageJson.description, keywords: packageJson.keywords, diff --git a/scripts/build.mjs b/scripts/build.mjs index 2bafb75bfe..814a339603 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -360,6 +360,10 @@ function generateReleasePackageJson() { main: packageJson.main, module: packageJson.module, typings: packageJson.typings, + scripts: { + "publish:beta": "npm publish --tag=beta", + "publish:latest": "npm publish" + }, sideEffects: packageJson.sideEffects, description: packageJson.description, keywords: packageJson.keywords, From 365dffd70de26233f625d9dd9a62dec9aceb402d Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 20:11:05 +0800 Subject: [PATCH 18/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 19f29fa53c..16bb71551e 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -9,9 +9,10 @@ on: jobs: release-3x-beta: - - runs-on: ubuntu-latest + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NPM_CONFIG_PROVENANCE: true permissions: contents: read id-token: write @@ -67,13 +68,7 @@ jobs: - name: Run Release @nutui/nutui-react if: env.ABORT != 'true' run: pnpm --dir ./release/h5 publish:beta --access public --no-git-checks - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - NPM_CONFIG_PROVENANCE: true - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' run: pnpm --dir ./release/taro publish:beta --access public --no-git-checks - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - NPM_CONFIG_PROVENANCE: true From f9331ec3b74369c3b20c2ea7417973604f58122d Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 20:14:46 +0800 Subject: [PATCH 19/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 16bb71551e..8496d57518 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -7,15 +7,17 @@ on: - feat_v3.x workflow_dispatch: +permissions: + contents: read + id-token: write + jobs: release-3x-beta: runs-on: ubuntu-latest env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} NPM_CONFIG_PROVENANCE: true - permissions: - contents: read - id-token: write + steps: - uses: actions/checkout@v4 with: From f371dd91eaab23e318487754123b27d4ff7a3aa5 Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 20:19:56 +0800 Subject: [PATCH 20/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 8496d57518..58642f74de 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -7,13 +7,12 @@ on: - feat_v3.x workflow_dispatch: -permissions: - contents: read - id-token: write - jobs: release-3x-beta: runs-on: ubuntu-latest + permissions: + contents: write + id-token: write env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} NPM_CONFIG_PROVENANCE: true From 3252770b03c68495397e8530326de318cadc5c50 Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 20:20:57 +0800 Subject: [PATCH 21/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 58642f74de..23dcc04b08 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -15,7 +15,6 @@ jobs: id-token: write env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - NPM_CONFIG_PROVENANCE: true steps: - uses: actions/checkout@v4 From c01e634a9a709bf4e77befb8b3edb026039f49cb Mon Sep 17 00:00:00 2001 From: oasis Date: Fri, 14 Feb 2025 20:39:18 +0800 Subject: [PATCH 22/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 23dcc04b08..21e1d36c96 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -14,7 +14,9 @@ jobs: contents: write id-token: write env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - uses: actions/checkout@v4 From b3ad99cdc242644aec56f14f1cc8f8f61f53656c Mon Sep 17 00:00:00 2001 From: oasis Date: Mon, 17 Feb 2025 09:56:12 +0800 Subject: [PATCH 23/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 6 ++---- scripts/build-taro.mjs | 4 ++-- scripts/build.mjs | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 21e1d36c96..c7f91a54d6 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -14,9 +14,7 @@ jobs: contents: write id-token: write env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - uses: actions/checkout@v4 @@ -69,8 +67,8 @@ jobs: - name: Run Release @nutui/nutui-react if: env.ABORT != 'true' - run: pnpm --dir ./release/h5 publish:beta --access public --no-git-checks + run: pnpm --dir ./release/h5 publish:beta - name: Run Releases @nutui/nutui-react-taro if: env.ABORT != 'true' - run: pnpm --dir ./release/taro publish:beta --access public --no-git-checks + run: pnpm --dir ./release/taro publish:beta diff --git a/scripts/build-taro.mjs b/scripts/build-taro.mjs index 63e6f0d3bc..c6737fea61 100644 --- a/scripts/build-taro.mjs +++ b/scripts/build-taro.mjs @@ -422,8 +422,8 @@ function generateReleasePackageJson() { module: packageJson.module, typings: packageJson.typings, scripts: { - "publish:beta": "npm publish --tag=beta", - "publish:latest": "npm publish" + "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, diff --git a/scripts/build.mjs b/scripts/build.mjs index 814a339603..20c23701c8 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -361,8 +361,8 @@ function generateReleasePackageJson() { module: packageJson.module, typings: packageJson.typings, scripts: { - "publish:beta": "npm publish --tag=beta", - "publish:latest": "npm publish" + "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, From 6d4b386dde47d0ea449a63a1058c8a063b82dda4 Mon Sep 17 00:00:00 2001 From: oasis Date: Mon, 17 Feb 2025 10:04:01 +0800 Subject: [PATCH 24/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index c7f91a54d6..96a726062a 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -21,6 +21,9 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} + registry-url: https://registry.npmjs.org + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Get commit message run: | @@ -60,15 +63,17 @@ jobs: echo "构建 nutui-react 失败" exit 1 fi - if ! pnpm build:taro; then - echo "构建 nutui-react-taro 失败" - 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: pnpm --dir ./release/h5 publish:beta + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Run Releases @nutui/nutui-react-taro - if: env.ABORT != 'true' - run: pnpm --dir ./release/taro publish:beta +# - name: Run Releases @nutui/nutui-react-taro +# if: env.ABORT != 'true' +# run: pnpm --dir ./release/taro publish:beta From 39b001c9110b37df44b62c7b5c2666ccc1fe7dd3 Mon Sep 17 00:00:00 2001 From: oasis Date: Mon, 17 Feb 2025 10:08:08 +0800 Subject: [PATCH 25/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 96a726062a..e30154e27d 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -13,17 +13,12 @@ jobs: permissions: contents: write id-token: write - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - uses: actions/checkout@v4 with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - registry-url: https://registry.npmjs.org - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Get commit message run: | From 629ae257533941dd3fd3ef9cfe741375304d6aa6 Mon Sep 17 00:00:00 2001 From: oasis Date: Mon, 17 Feb 2025 10:10:18 +0800 Subject: [PATCH 26/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index e30154e27d..52f4da605e 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -64,7 +64,6 @@ jobs: # fi - name: Run Release @nutui/nutui-react - if: env.ABORT != 'true' run: pnpm --dir ./release/h5 publish:beta env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 8fde874d9988927192ed9711802c7d780670911b Mon Sep 17 00:00:00 2001 From: oasis Date: Mon, 17 Feb 2025 10:15:22 +0800 Subject: [PATCH 27/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 52f4da605e..d438762d3d 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -64,9 +64,9 @@ jobs: # fi - name: Run Release @nutui/nutui-react - run: pnpm --dir ./release/h5 publish:beta env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: pnpm --dir ./release/h5 publish:beta # - name: Run Releases @nutui/nutui-react-taro # if: env.ABORT != 'true' From f20c2111bcea3fe598d41ec7756061a004a817b0 Mon Sep 17 00:00:00 2001 From: oasis Date: Mon, 17 Feb 2025 10:18:31 +0800 Subject: [PATCH 28/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 65 +++++++++++++++--------------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index d438762d3d..138edf3d32 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -20,26 +20,26 @@ jobs: 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 i -g pnpm@10 +# - 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: @@ -47,17 +47,17 @@ jobs: 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 +# - 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 @@ -66,7 +66,8 @@ jobs: - name: Run Release @nutui/nutui-react env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: pnpm --dir ./release/h5 publish:beta +# run: pnpm --dir ./release/h5 publish:beta + run: echo "${{ secrets.NPM_TOKEN }}" # - name: Run Releases @nutui/nutui-react-taro # if: env.ABORT != 'true' From 1989f864f28f0d077f2056094ec118ec44a2f846 Mon Sep 17 00:00:00 2001 From: oasis Date: Mon, 17 Feb 2025 10:19:33 +0800 Subject: [PATCH 29/29] chore(release): v3.0.0-beta.14 --- .github/workflows/release-beta.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 138edf3d32..c09aa9a27e 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -38,8 +38,8 @@ jobs: # if: contains( env.COMMIT_MESSAGE , '-beta') # run: echo "RELEASE_TAG=beta" >> $GITHUB_ENV # -# - name: Install pnpm -# run: npm i -g pnpm@10 + - name: Install pnpm + run: npm i -g pnpm@10 - uses: actions/setup-node@v4 with: