Skip to content

docs + chore(release): 3.0.0 #69

docs + chore(release): 3.0.0

docs + chore(release): 3.0.0 #69

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "24"
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.13
- name: Install dependencies
run: bun install --frozen-lockfile
- name: CI gate
run: bun run ci
- name: Unit tests with coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bun run test:coverage
- name: Assert Node.js version
run: node -e "const v=+process.version.slice(1).split('.')[0]; if(v<22)process.exit(1)"
prerelease-pack:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "24"
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.13
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Assert Node.js version
run: node -e "const v=+process.version.slice(1).split('.')[0]; if(v<22)process.exit(1)"
- name: Pack npm tarball (prerelease snapshot)
id: pack
run: |
set -euo pipefail
npm pack
SRC=$(find . -maxdepth 1 -type f -name 'rethunk-github-mcp-*.tgz' -printf '%T@ %p\n' | sort -rn | head -1 | cut -d' ' -f2-)
DEST="rethunk-github-mcp-prerelease-${{ github.sha }}.tgz"
mv "$SRC" "$DEST"
echo "tarball=$DEST" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: npm-pack-prerelease-${{ github.sha }}
path: ${{ steps.pack.outputs.tarball }}
if-no-files-found: error
retention-days: 90