Skip to content

Commit 3118f19

Browse files
committed
ci: publish to npm
1 parent a1f101f commit 3118f19

File tree

9 files changed

+28
-568
lines changed

9 files changed

+28
-568
lines changed

.github/workflows/code_health.yaml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,6 @@ on:
66
- main
77
pull_request:
88
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
13-
with:
14-
config: ${{ vars.PERMISSIONS_CONFIG }}
15-
- name: Checkout repository
16-
uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version-file: package.json
20-
cache: "npm"
21-
- name: Install dependencies
22-
run: |
23-
npm ci
24-
- name: build
25-
run: |
26-
npm run build
27-
- name: Check for uncommitted files
28-
run: |
29-
export FILES=
30-
FILES=$(git ls-files -o -m --directory --exclude-standard --no-empty-directory)
31-
export LINES=
32-
LINES=$(echo "$FILES" | awk 'NF' | wc -l)
33-
if [ "$LINES" -ne 0 ]; then
34-
echo "Detected files that need to be committed:"
35-
echo "${FILES}"
36-
echo ""
37-
echo "Try running: npm run build"
38-
exit 1
39-
fi
409
prettier:
4110
runs-on: ubuntu-latest
4211
steps:

.github/workflows/publish.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Publish
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
12+
with:
13+
config: ${{ vars.PERMISSIONS_CONFIG }}
14+
- name: Checkout Repository
15+
uses: actions/checkout@v2
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version-file: package.json
19+
cache: "npm"
20+
- name: Install dependencies
21+
run: |
22+
npm ci
23+
- run: |
24+
npm publish
25+
- run: |
26+
gh release create ${{ github.ref }} --title "${{ github.ref }}" --notes "Release ${{ github.ref }}" --generate-notes

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist
12
node_modules
23
.vscode/mcp.json
34
.github/prompts/*

dist/client.js

Lines changed: 0 additions & 225 deletions
This file was deleted.

dist/config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

dist/index.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)