Merge pull request #4985 from Dokploy/fix/sync-version-release-spec

fix(ci): generate OpenAPI spec from the release commit in sync-version

(cherry picked from commit f9057d9304)

[skip ci]
This commit is contained in:
Narciso E. Núñez Arias 2026-08-11 00:15:29 -04:00 committed by Dokploy Bot
parent 2003886aa0
commit c085ec3793

View File

@ -187,6 +187,16 @@ jobs:
with:
version: 10.22.0
- uses: actions/setup-node@v4
with:
node-version: 24.4.0
cache: pnpm
- name: Generate OpenAPI specification
run: |
pnpm install --frozen-lockfile
pnpm generate:openapi
- name: Sync version to MCP repository
run: |
git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/mcp.git /tmp/mcp-repo
@ -195,8 +205,8 @@ jobs:
jq --arg v "${{ needs.generate-release.outputs.npm_version }}" '.version = $v' package.json > package.json.tmp
mv package.json.tmp package.json
cp ${{ github.workspace }}/openapi.json src/generated/openapi.json
pnpm install
pnpm run fetch-openapi
pnpm run generate
git config user.name "Dokploy Bot"