-
Notifications
You must be signed in to change notification settings - Fork 5
65 lines (53 loc) · 1.31 KB
/
release.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Release mcp-k8s to npm
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
call-run-tests:
uses: strowk/mcp-k8s-go/.github/workflows/test.yaml@main
release:
needs: call-run-tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.3'
- name: Install goreleaser
run: |
go install github.com/goreleaser/goreleaser/v2@latest
which goreleaser
- name: Run goreleaser build
run: |
goreleaser build --clean
- name: Publish to npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
chmod +x ./packages/publish_npm.sh
./packages/publish_npm.sh
install:
strategy:
matrix:
os:
- windows-latest
- ubuntu-latest
- macos-latest
arch:
- x64
- arm64
runs-on: ${{ matrix.os }}
needs: release
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install mcp-k8s
run: |
npm install -g @strowk/mcp-k8s
- name: Test mcp-k8s
run: |
mcp-k8s version