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

fix: Update CI workflow to use stub types for @opencode-ai/plugin #21

fix: Update CI workflow to use stub types for @opencode-ai/plugin

fix: Update CI workflow to use stub types for @opencode-ai/plugin #21

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 stub types for CI
run: |
rm -rf node_modules/@opencode-ai/plugin
mkdir -p node_modules/@opencode-ai/plugin
cp -r stubs/@opencode-ai/plugin/* node_modules/@opencode-ai/plugin/
- 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