Skip to content

perf: enable tree-shaking for ESM builds and unify hooks-config #301

perf: enable tree-shaking for ESM builds and unify hooks-config

perf: enable tree-shaking for ESM builds and unify hooks-config #301

Workflow file for this run

# .github/workflows/sync-cnb.yml
name: Sync to CNB
on:
- push
- delete
jobs:
sync-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Sync to CNB Repository
uses: docker://tencentcom/git-sync
env:
PLUGIN_TARGET_URL: "https://cnb.cool/tencent/cherry-markdown/cherry-markdown.git"
PLUGIN_AUTH_TYPE: "https"
PLUGIN_USERNAME: "cnb"
PLUGIN_PASSWORD: ${{ secrets.CHERRY_MARKDOWN_CNB_SYNC_GITHUB }}
PLUGIN_FORCE: "true"
sync-delete-branch:
if: ${{ github.repository == 'Tencent/cherry-markdown' && github.event_name == 'delete' && github.event.ref_type == 'branch' }}
runs-on: ubuntu-latest
steps:
- uses: TDesignOteam//tdesign-pr-trigger-action@develop
with:
repo: 'tencent/cherry-markdown/cherry-markdown'
token: ${{ secrets.CHERRY_MARKDOWN_CNB_SYNC_GITHUB }}
branch: ${{ github.event.ref }}
trigger: '/delete-cnb-branch'