From 80b6c1411b317d3987a40947ecd970be51418a2d Mon Sep 17 00:00:00 2001 From: "Leon.Zhang" Date: Thu, 19 Mar 2026 21:44:12 +0800 Subject: [PATCH] delete ci options --- .github/dependabot.yml | 19 --------- .github/release-drafter.yml | 49 ---------------------- .github/workflows/publish.yml | 58 --------------------------- .github/workflows/release-drafter.yml | 24 ----------- 4 files changed, 150 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/release-drafter.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index d3132c8..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,19 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "npm" - directory: "/" - schedule: - interval: "weekly" - open-pull-requests-limit: 10 - groups: - dependencies: - patterns: - - "*" - exclude-patterns: - - "typescript" - - "tronweb" - - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 7180088..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,49 +0,0 @@ -name-template: 'v$RESOLVED_VERSION' -tag-template: 'v$RESOLVED_VERSION' -categories: - - title: '🚀 Features' - labels: - - 'feature' - - 'enhancement' - - title: '🐛 Bug Fixes' - labels: - - 'fix' - - 'bugfix' - - 'bug' - - title: '🧰 Maintenance' - labels: - - 'chore' - - 'maintenance' - - title: '📚 Documentation' - labels: - - 'documentation' - - 'docs' - - title: '⬆️ Dependencies' - labels: - - 'dependencies' -change-template: '- $TITLE @$AUTHOR (#$NUMBER)' -change-title-escapes: '\<*_&' -version-resolver: - major: - labels: - - 'major' - - 'breaking' - minor: - labels: - - 'minor' - - 'feature' - - 'enhancement' - patch: - labels: - - 'patch' - - 'fix' - - 'bugfix' - default: patch -template: | - ## Changes - - $CHANGES - - ## Contributors - - $CONTRIBUTORS diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index b128b67..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Publish to npm - -on: - release: - types: [published] - workflow_dispatch: - inputs: - tag: - description: 'npm tag (latest, beta, etc.)' - required: true - default: 'beta' - type: choice - options: - - latest - - beta - - alpha - -jobs: - publish: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v6 - - - name: Use Node.js 20.x - uses: actions/setup-node@v6 - with: - node-version: 20.x - cache: npm - registry-url: 'https://registry.npmjs.org' - - - name: Install dependencies - run: npm install - - - name: Run tests - run: npm test - - - name: Build TypeScript - run: npm run build - - - name: Determine npm tag - id: npm-tag - run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - echo "tag=${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT - elif [[ "${{ github.event.release.tag_name }}" == *"-beta"* ]]; then - echo "tag=beta" >> $GITHUB_OUTPUT - elif [[ "${{ github.event.release.tag_name }}" == *"-alpha"* ]]; then - echo "tag=alpha" >> $GITHUB_OUTPUT - else - echo "tag=latest" >> $GITHUB_OUTPUT - fi - - - name: Publish to npm - run: npm publish --tag ${{ steps.npm-tag.outputs.tag }} --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index 9535d88..0000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Release Drafter - -on: - push: - branches: - - main - - master - pull_request: - types: [opened, reopened, synchronize] - -permissions: - contents: read - pull-requests: write - -jobs: - update_release_draft: - permissions: - contents: write - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v6 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}