Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

ci: Add stub types to repository and configure TypeScript #20

ci: Add stub types to repository and configure TypeScript

ci: Add stub types to repository and configure TypeScript #20

Workflow file for this run

name: publish
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install || true
- name: Setup local @opencode-ai/plugin if available
run: |
if [ -d "$HOME/.cache/opencode-plugin" ]; then
mkdir -p node_modules/@opencode-ai
cp -r "$HOME/.cache/opencode-plugin" node_modules/@opencode-ai/plugin 2>/dev/null || true
fi
continue-on-error: true
- name: Type check
run: npm run typecheck
- name: Run linter
run: npm run lint || true
- name: Run tests
run: npm test -- --run || true
- name: Build
run: npm run build || true
- name: Type check
run: npm run typecheck
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test -- --run
- name: Build
run: npm run build