Skip to content

Merge pull request #3 from GravityKit/develop #22

Merge pull request #3 from GravityKit/develop

Merge pull request #3 from GravityKit/develop #22

Workflow file for this run

name: CI/CD
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x, 24.x, 25.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run type-check
- run: npm run lint
- run: npm run build
- run: npm test
publish:
runs-on: ubuntu-latest
needs: test
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@latest
- run: npm ci
- run: npm run build
- name: Publish to npm
run: npm publish --provenance --access public
continue-on-error: true
- name: Build MCPB extension
run: npm run mcpb:build && cd helpscout-mcp-extension && npx @anthropic-ai/mcpb pack
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: helpscout-mcp-extension/*.mcpb