ci: publish mcp package to npm
Some checks failed
build / test (push) Successful in 27s
publish / npm (push) Failing after 31s

This commit is contained in:
2026-05-15 19:59:43 -03:00
parent 9c5d8172dc
commit f1ccc3bb91
3 changed files with 137 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
name: build
on:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout from in-cluster gitea
run: |
set -e
git clone --depth=1 \
"http://gitea_admin:${{ secrets.ADMIN_PW }}@gitea-http.gitea.svc.cluster.local:3000/gitea_admin/a2a-mcp.git" .
git checkout "$GITHUB_SHA"
- name: setup node
run: |
set -e
apt-get update
apt-get install -y --no-install-recommends ca-certificates curl
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y --no-install-recommends nodejs
node --version
npm --version
- name: install dependencies
run: npm ci
- name: test
run: npm test
- name: build
run: npm run build
- name: verify package contents
run: npm pack --dry-run