Skip to content

Commit ff9fa74

Browse files
committed
fix(ci): generate OpenAPI spec from the release commit in sync-version
The cli/sdk steps copied the repo-root openapi.json, which was last committed in March, and the mcp step fetched docs.dokploy.com, which canary pushes can overwrite. Generate the spec from the release commit instead so each package release matches its dokploy tag.
1 parent b6190ff commit ff9fa74

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎.github/workflows/dokploy.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@ jobs:
187187
with:
188188
version: 10.22.0
189189

190+
- uses: actions/setup-node@v4
191+
with:
192+
node-version: 24.4.0
193+
cache: pnpm
194+
195+
- name: Generate OpenAPI specification
196+
run: |
197+
pnpm install --frozen-lockfile
198+
pnpm generate:openapi
199+
190200
- name: Sync version to MCP repository
191201
run: |
192202
git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/mcp.git /tmp/mcp-repo
@@ -195,8 +205,8 @@ jobs:
195205
jq --arg v "${{ needs.generate-release.outputs.npm_version }}" '.version = $v' package.json > package.json.tmp
196206
mv package.json.tmp package.json
197207
208+
cp ${{ github.workspace }}/openapi.json src/generated/openapi.json
198209
pnpm install
199-
pnpm run fetch-openapi
200210
pnpm run generate
201211
202212
git config user.name "Dokploy Bot"

0 commit comments

Comments
 (0)