ci: publish mcp package to npm
This commit is contained in:
37
.gitea/workflows/build.yml
Normal file
37
.gitea/workflows/build.yml
Normal 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
|
||||
Reference in New Issue
Block a user