Skip to content

Release v1.0.1: drop Arbitrum/Ethereum, add 4 LP MCP tools #168

Release v1.0.1: drop Arbitrum/Ethereum, add 4 LP MCP tools

Release v1.0.1: drop Arbitrum/Ethereum, add 4 LP MCP tools #168

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: ts
strategy:
matrix:
node-version: [20, 22, 24]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
cache-dependency-path: ts/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check & build
run: pnpm build
- name: Lint
run: pnpm -r lint
- name: Unit tests
run: pnpm test || true
- name: Package smoke test
run: |
cd packages/defi-cli
pnpm pack
TARBALL=$(ls hypurrquant-defi-cli-*.tgz)
tar -tzf "$TARBALL" | grep 'dist/main.js'
tar -tzf "$TARBALL" | grep 'config/chains.toml'
mkdir -p /tmp/smoke-test
cd /tmp/smoke-test
npm init -y > /dev/null 2>&1
npm install "$GITHUB_WORKSPACE/ts/packages/defi-cli/$TARBALL" > /dev/null 2>&1
npx defi --help
release:
name: GitHub Release
needs: build-and-test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate changelog
id: changelog
run: |
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
if [ -n "$PREV_TAG" ]; then
LOG=$(git log --oneline "$PREV_TAG"..HEAD -- ':!.omc' ':!.github')
else
LOG=$(git log --oneline -20)
fi
echo "changelog<<EOF" >> "$GITHUB_OUTPUT"
echo "$LOG" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
body: |
## Changes
${{ steps.changelog.outputs.changelog }}
**npm:** `npm install -g @hypurrquant/defi-cli@${{ github.ref_name }}`
**npx:** `npx @hypurrquant/defi-cli --help`