高级
DSH 插件的 CI/CD 管道
DSH 插件的 CI/CD 管道 — 学习如何构建高级 dsh 插件。
插件的 CI/CD
自动化测试、lint 和发布。每次 push 都应该跑完整的质量门禁。
# .github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm test
- run: npx dsh-plugin-lint .自动化发布
tag push 时,发布到 npm 并自动更新 GitHub topic。