From 7a85abdcbc744139bfb639e0350d7b2884ba8481 Mon Sep 17 00:00:00 2001 From: "lixuefei.1313" Date: Fri, 6 Mar 2026 17:01:32 +0800 Subject: [PATCH] chore: remove unused GitHub Actions workflows --- .github/workflows/publish.yml | 171 ------------------ .github/workflows/release-changelog.yml | 103 ----------- .../chore-remove-unused-actions_20260306.json | 11 ++ 3 files changed, 11 insertions(+), 274 deletions(-) delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/release-changelog.yml create mode 100644 common/changes/@visactor/vchart/chore-remove-unused-actions_20260306.json diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 7ed589152b..0000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,171 +0,0 @@ -name: Publish CI - -on: - push: - branches: - - 'publish/[0-9]+.[0-9]+.[0-9]+' - -jobs: - build: - runs-on: macos-latest - permissions: - contents: write - pull-requests: write - - strategy: - matrix: - node-version: [18.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v3 - - run: | - git config user.name ${{ github.actor }} - git config user.email ${{ github.actor }}@users.noreply.github.com - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: './common/config/rush/pnpm-lock.yaml' - - - name: Install Python distutils (macOS) - if: runner.os == 'macOS' - run: | - python3 -m pip install setuptools --break-system-packages - - - name: Install Python distutils (Linux) - if: runner.os == 'Linux' - run: | - sudo apt-get update - sudo apt-get install -y python3-distutils - python3 -m pip install setuptools --break-system-packages - - - name: Install latest pnpm - run: npm install -g pnpm@10.7.0 - - - name: Install native deps for node-canvas (macOS) - if: runner.os == 'macOS' - run: | - brew update - brew install pkg-config cairo pango libpng jpeg giflib librsvg - - - name: Install native deps for node-canvas (Linux) - if: runner.os == 'Linux' - run: | - sudo apt-get update - sudo apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev pkg-config - - # Install rush - - name: Install rush - run: node common/scripts/install-run-rush.js install --bypass-policy - - - name: Parse semver version from branch name - id: semver_parser - uses: xile611/read-package-version-action@main - with: - path: packages/vchart - semver_string: ${{ github.ref_name }} - semver_pattern: '^release/(.*)$' # ^v?(.*)$ by default - - - name: update nextBump of version policies - uses: xile611/set-next-bump-of-rush@main - with: - release_version: ${{ steps.semver_parser.outputs.full }} - write_next_bump: true - - - name: Generate changelog by rush version - run: node common/scripts/install-run-rush.js version --bump - - - name: Update version - run: node common/scripts/apply-release-version.js 'none' ${{ steps.semver_parser.outputs.main }} - - - name: Build vutils-extension && vchart - env: - NODE_OPTIONS: '--max_old_space_size=4096' - run: node common/scripts/install-run-rush.js build --to @visactor/vchart - - # run bugserver after the build of main packages - # - name: Run Bugserver - # working-directory: ./packages/vchart - # env: - # BUG_SERVER_TOKEN: ${{ secrets.BUG_SERVER_TOKEN }} - # run: node ../../common/scripts/install-run-rushx.js ci - - - name: Build react-vchart - env: - NODE_OPTIONS: '--max_old_space_size=4096' - run: node common/scripts/install-run-rush.js build --only @visactor/react-vchart - - - name: Build openinula-vchart - env: - NODE_OPTIONS: '--max_old_space_size=4096' - run: node common/scripts/install-run-rush.js build --only @visactor/openinula-vchart - - - name: Build taro-vchart - env: - NODE_OPTIONS: '--max_old_space_size=4096' - run: node common/scripts/install-run-rush.js build --only @visactor/taro-vchart - - - name: Build lark-vchart - env: - NODE_OPTIONS: '--max_old_space_size=4096' - run: node common/scripts/install-run-rush.js build --only @visactor/lark-vchart - - - name: Build wx-vchart - env: - NODE_OPTIONS: '--max_old_space_size=4096' - run: node common/scripts/install-run-rush.js build --only @visactor/wx-vchart - - - name: Publish to npm - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - run: node common/scripts/install-run-rush.js publish --publish --include-all --tag latest - - - name: Update shrinkwrap - run: node common/scripts/install-run-rush.js update - - - name: Get npm version - id: package-version - uses: xile611/read-package-version-action@main - with: - path: packages/vchart - - - name: Commit & Push changes - run: | - git add . - git commit -m 'build: prelease version ${{ steps.package-version.outputs.current_version }} [skip ci]' -n - git push --no-verify origin ${{ github.ref_name }} - - - name: Collect changelog of rush - uses: xile611/collect-rush-changlog@main - id: changelog - with: - version: ${{ steps.package-version.outputs.current_version }} - - - name: Create Release for Tag - id: release_tag - uses: ncipollo/release-action@v1.12.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag: v${{ steps.package-version.outputs.current_version }} - commit: main - prerelease: false - body: | - ${{ steps.changelog.outputs.markdown }} - draft: true # - - - name: Create Pull Request - uses: dustinirving/create-pr@v1.0.2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - title: '[Auto release] release ${{ steps.package-version.outputs.current_version }}' - base: main - head: ${{ github.ref_name }} - labels: release # default labels, the action will throw error if not specified - reviewers: kkxxkk2019 # default reviewers, the action will throw error if not specified - body: | - ${{ steps.changelog.outputs.markdown }} diff --git a/.github/workflows/release-changelog.yml b/.github/workflows/release-changelog.yml deleted file mode 100644 index 73b33da411..0000000000 --- a/.github/workflows/release-changelog.yml +++ /dev/null @@ -1,103 +0,0 @@ -name: Release changelog - -on: - release: - types: [published] - -jobs: - update-changelog-after-publish-a-release: - name: GitHub Actions Test - runs-on: macos-latest - - strategy: - matrix: - node-version: [18.x] - - steps: - - name: Checkout - id: checkout - uses: actions/checkout@v3 - - run: | - git config user.name ${{ github.actor }} - git config user.email ${{ github.actor }}@users.noreply.github.com - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: './common/config/rush/pnpm-lock.yaml' - - - name: Install Python distutils (macOS) - if: runner.os == 'macOS' - run: | - python3 -m pip install setuptools --break-system-packages - - - name: Install Python distutils (Linux) - if: runner.os == 'Linux' - run: | - sudo apt-get update - sudo apt-get install -y python3-distutils - python3 -m pip install setuptools --break-system-packages - - - name: Install latest pnpm - run: npm install -g pnpm@10.7.0 - - - name: Install native deps for node-canvas (macOS) - if: runner.os == 'macOS' - run: | - brew update - brew install pkg-config cairo pango libpng jpeg giflib librsvg - - - name: Install native deps for node-canvas (Linux) - if: runner.os == 'Linux' - run: | - sudo apt-get update - sudo apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev pkg-config - - # Install rush - - name: Install rush - run: node common/scripts/install-run-rush.js install --bypass-policy - - - name: Create branch - run: | - git status - git fetch origin develop:develop - git checkout develop - git status - git checkout -b docs/generate-changelog-${{ github.event.release.tag_name }} - - - name: generate changelog - id: generate-changelog - uses: xile611/collect-release-changelog@main - with: - token: ${{ secrets.GITHUB_TOKEN }} - folder: ./docs/assets/changelog - langs: 'en,zh' - tag_name: ${{github.event.release.tag_name}} - file_name: release.md - - - name: generate changelog of harmony - id: generate-changelog-of-harmony - uses: xile611/collect-release-changelog@main - with: - token: ${{ secrets.GITHUB_TOKEN }} - folder: ./packages/harmony_vchart/library - tag_name: ${{github.event.release.tag_name}} - file_name: CHANGELOG.md - - - name: Push branch - run: | - git add . - git commit -m "docs: generate changelog of release ${{ github.event.release.tag_name }} [skip ci]" -n - git push --no-verify origin docs/generate-changelog-${{ github.event.release.tag_name }} - - - name: Create Pull Request - uses: dustinirving/create-pr@v1.0.2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - title: '[Auto changelog] changlog of ${{ github.event.release.tag_name }}' - base: develop - head: 'docs/generate-changelog-${{ github.event.release.tag_name }}' - labels: changelog - body: 'update changelog of ${{ github.event.release.tag_name }}' diff --git a/common/changes/@visactor/vchart/chore-remove-unused-actions_20260306.json b/common/changes/@visactor/vchart/chore-remove-unused-actions_20260306.json new file mode 100644 index 0000000000..393d1819a9 --- /dev/null +++ b/common/changes/@visactor/vchart/chore-remove-unused-actions_20260306.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "@visactor/vchart", + "comment": "chore: remove unused GitHub Actions workflows", + "type": "patch" + } + ], + "packageName": "@visactor/vchart", + "email": "lixuef1313@163.com" +} \ No newline at end of file