Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/build-pack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI & Release

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: write
issues: write
pull-requests: write

jobs:
ci:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Build & Pack
run: npm run pack

- name: Release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/npm", { "npmPublish": false }],
["@semantic-release/exec", {
"prepareCmd": "node scripts/update-manifest-version.mjs ${nextRelease.version} && npm run pack"
}],
["@semantic-release/git", {
"assets": ["package.json", "package-lock.json", "manifest.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]"
}],
["@semantic-release/github", {
"assets": [
{ "path": "acc-mcp.mcpb", "label": "acc-mcp-v${nextRelease.version}.mcpb" }
]
}]
]
}
Loading