Repository navigation
47 lines (47 loc) · 1.86 KB
/
Copy pathsdk_publish.yaml
File metadata and controls
47 lines (47 loc) · 1.86 KB
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
name: Publish
# Generated by `speakeasy configure publishing`, adjusted for our release flow.
#
# This repository publishes maintenance releases from release under npm legacy.
# comp-v2 owns latest; never replace its package with this repository’s server.
# main receives reviewed changes before promotion to release.
#
# Monorepo adjustments (same as sdk_generation.yaml):
# - We pass `working_directory: apps/mcp-server` to Speakeasy's reusable action
# - The `paths` filter points at apps/mcp-server/.speakeasy/gen.lock, not the
# default `.speakeasy/gen.lock` Speakeasy writes (which never matches here)
#
# WHY THIS FILE IS HERE AND NOT UNDER apps/mcp-server/.github/workflows/:
# GitHub Actions only reads workflow files from `.github/workflows/` at the
# repository root. Speakeasy writes them next to the speakeasy config, which
# would be invisible to GitHub. If you re-run `speakeasy configure publishing`,
# delete the duplicates it creates under apps/mcp-server/.github/ and merge
# any changes into this file.
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
id-token: write
'on':
push:
branches:
- release
paths:
- apps/mcp-server/.speakeasy/gen.lock
- apps/mcp-server/package.json
- apps/mcp-server/src/**
- .github/workflows/sdk_publish.yaml
workflow_dispatch: {}
jobs:
publish:
if: github.ref == 'refs/heads/release'
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@68f3bfefb79354d39358bf4699863dabd2cea0f6 # v15.60.11
with:
target: comp-ai
working_directory: apps/mcp-server
# comp-v2 owns latest. This repository publishes maintenance releases only.
npm_tag: legacy
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}