fix(dox): formatted README #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================================= | |
| # CodeOps MCP Server — Automated Release Workflow | |
| # ============================================================================= | |
| # | |
| # Uses semantic-release to automatically: | |
| # 1. Analyze commits since last release (conventional commits) | |
| # 2. Determine version bump (patch/minor/major) | |
| # 3. Update CHANGELOG.md | |
| # 4. Bump package.json version | |
| # 5. Publish to npm | |
| # 6. Create GitHub Release with auto-generated notes | |
| # 7. Push version commit + CHANGELOG back to master | |
| # | |
| # Triggers on every push to master. If there are no new releasable | |
| # commits (feat/fix/breaking), semantic-release does nothing. | |
| # | |
| # Prerequisites: | |
| # - NPM_TOKEN secret must be set in repository settings | |
| # (npm → Access Tokens → Generate New Token → Automation) | |
| # ============================================================================= | |
| name: Release | |
| on: | |
| push: | |
| branches: [master] | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| id-token: write | |
| jobs: | |
| release: | |
| name: Build, Test & Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: "https://registry.npmjs.org" | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Build | |
| run: yarn build | |
| - name: Run tests | |
| run: yarn test | |
| - name: Verify package contents | |
| run: npm pack --dry-run | |
| - name: Release | |
| run: npx semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |