Fork of Chiri for Astro for my blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: updt ci & dependabot

the3ash d69843d3 ecd3635a

+81 -43
+60 -15
.github/dependabot.yml
··· 1 1 version: 2 2 2 updates: 3 - # Enable npm (pnpm) dependency updates 3 + # Enable npm dependency updates 4 4 - package-ecosystem: 'npm' 5 5 directory: '/' 6 6 schedule: 7 - # Check for updates every Monday at 09:00 (Asia/Shanghai) 8 7 interval: 'weekly' 9 8 day: 'monday' 10 9 time: '09:00' 11 - timezone: 'Asia/Shanghai' 12 - # Limit the number of open PRs created by Dependabot 13 - open-pull-requests-limit: 10 14 10 # Allow automatic merging of non-major version updates 11 + open-pull-requests-limit: 10 15 12 allow: 16 13 - dependency-type: 'all' 17 14 assignees: 18 15 - 'the3ash' 19 16 commit-message: 20 - # Use 'deps' for production dependencies, 'dev' for development dependencies 21 17 prefix: 'deps' 22 18 prefix-development: 'dev' 23 19 include: 'scope' 24 - # Labels to add to Dependabot PRs 20 + versioning-strategy: auto 25 21 labels: 26 22 - 'dependencies' 27 23 - 'automated' 28 - ignore: 29 - # Ignore major version updates (breaking changes) 30 - - dependency-name: '*' 31 - update-types: ['version-update:semver-major'] 32 - versioning-strategy: auto 24 + # Group minor and patch updates together 25 + groups: 26 + react: 27 + patterns: 28 + - 'react*' 29 + update-types: 30 + - 'minor' 31 + - 'patch' 32 + vite: 33 + patterns: 34 + - 'vite*' 35 + - '@vitejs/*' 36 + update-types: 37 + - 'minor' 38 + - 'patch' 39 + eslint: 40 + patterns: 41 + - 'eslint*' 42 + - '@eslint/*' 43 + - 'eslint-*' 44 + update-types: 45 + - 'minor' 46 + - 'patch' 47 + typescript: 48 + patterns: 49 + - 'typescript*' 50 + - '@types/*' 51 + - 'typescript-*' 52 + update-types: 53 + - 'minor' 54 + - 'patch' 55 + prettier: 56 + patterns: 57 + - 'prettier*' 58 + - 'eslint-config-prettier' 59 + - 'eslint-plugin-prettier' 60 + update-types: 61 + - 'minor' 62 + - 'patch' 63 + # Catch-all group for everything else 64 + other-deps: 65 + patterns: 66 + - '*' 67 + exclude-patterns: 68 + - 'react*' 69 + - 'vite*' 70 + - '@vitejs/*' 71 + - 'eslint*' 72 + - '@eslint/*' 73 + - 'eslint-*' 74 + - 'typescript*' 75 + - '@types/*' 76 + - 'typescript-*' 77 + - 'prettier*' 78 + update-types: 79 + - 'minor' 80 + - 'patch' 33 81 34 82 # Enable GitHub Actions updates 35 83 - package-ecosystem: 'github-actions' 36 84 directory: '/' 37 85 schedule: 38 - # Check for updates every Monday at 09:00 (Asia/Shanghai) 39 86 interval: 'weekly' 40 87 day: 'monday' 41 88 time: '09:00' 42 - timezone: 'Asia/Shanghai' 43 89 open-pull-requests-limit: 10 44 90 assignees: 45 91 - 'the3ash' ··· 49 95 labels: 50 96 - 'dependencies' 51 97 - 'automated' 52 - - 'github-actions'
+21 -28
.github/workflows/ci.yml
··· 2 2 3 3 on: 4 4 push: 5 - branches: [main, master] 5 + branches: [main] 6 6 pull_request: 7 - branches: [main, master] 8 - check_suite: 9 - types: [completed] 10 - status: {} 7 + branches: [main] 11 8 12 9 concurrency: 13 10 group: ${{ github.workflow }}-${{ github.ref }} ··· 20 17 21 18 jobs: 22 19 validate: 23 - name: Validate Code & Build 20 + name: Validate & Build 24 21 runs-on: ubuntu-latest 25 22 26 23 steps: 27 24 - name: Checkout code 28 25 uses: actions/checkout@v6 29 26 30 - - name: Setup pnpm 27 + - name: Install pnpm 31 28 uses: pnpm/action-setup@v4 32 29 with: 33 30 version: latest ··· 35 32 - name: Setup Node.js 36 33 uses: actions/setup-node@v6 37 34 with: 38 - node-version: 'latest' 35 + node-version: 'lts/*' 39 36 cache: 'pnpm' 40 37 41 38 - name: Install dependencies 42 39 run: pnpm install --frozen-lockfile --prefer-offline 43 40 44 - - name: Check formatting (if prettier is available) 45 - run: | 46 - if [ -f "pnpm-lock.yaml" ] && pnpm list prettier &>/dev/null; then 47 - pnpm exec prettier --check . 48 - else 49 - echo "Prettier not configured, skipping format check" 50 - fi 41 + - name: Format check 42 + run: pnpm format:check 51 43 continue-on-error: true 52 44 53 - - name: Run ESLint (if available) 54 - run: | 55 - if [ -f "pnpm-lock.yaml" ] && pnpm list eslint &>/dev/null; then 56 - pnpm exec eslint . 57 - else 58 - echo "ESLint not configured, skipping lint check" 59 - fi 45 + - name: Lint 46 + run: pnpm lint 60 47 continue-on-error: true 61 48 62 - - name: Run linting 63 - run: pnpm lint 49 + - name: Type check 50 + run: tsc -b 64 51 65 - - name: Build project 52 + - name: Build 66 53 run: pnpm build 67 54 55 + - name: Upload build artifacts 56 + uses: actions/upload-artifact@v6 57 + with: 58 + name: dist 59 + path: dist/ 60 + retention-days: 7 61 + 68 62 auto-merge: 69 63 name: Auto Merge 70 64 runs-on: ubuntu-latest ··· 83 77 with: 84 78 token: ${{ secrets.GITHUB_TOKEN }} 85 79 86 - - name: Auto approve Dependabot PRs 87 - if: github.actor == 'dependabot[bot]' 80 + - name: Auto approve 88 81 uses: hmarr/auto-approve-action@v4 89 82 with: 90 83 github-token: ${{ secrets.GITHUB_TOKEN }} ··· 95 88 id: wait-for-checks 96 89 with: 97 90 token: ${{ secrets.GITHUB_TOKEN }} 98 - checkName: 'Validate Code & Build' 91 + checkName: 'Validate & Build' 99 92 ref: ${{ github.event.pull_request.head.sha || github.sha }} 100 93 timeoutSeconds: 600 101 94 intervalSeconds: 10