-
-
Notifications
You must be signed in to change notification settings - Fork 787
38 lines (30 loc) · 950 Bytes
/
bundle.yml
File metadata and controls
38 lines (30 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Bundle MCP Server & CLI
on:
workflow_dispatch:
push:
branches: [main]
paths:
- 'src/**'
- 'package.json'
- 'tsconfig.json'
permissions:
contents: write
jobs:
bundle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npx tsc --noEmit
- run: npm run bundle
- name: Commit bundle
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -f server.bundle.mjs cli.bundle.mjs hooks/session-extract.bundle.mjs hooks/session-snapshot.bundle.mjs hooks/session-db.bundle.mjs
git diff --staged --quiet && echo "No changes" && exit 0
git commit -m "ci: update server.bundle.mjs, cli.bundle.mjs & session hook bundles"
git push