@@ -140,6 +140,7 @@ jobs:
140140 runs-on : ubuntu-latest
141141 outputs :
142142 version : ${{ steps.get_version.outputs.version }}
143+ npm_version : ${{ steps.get_version.outputs.npm_version }}
143144 steps :
144145 - name : Checkout
145146 uses : actions/checkout@v4
@@ -151,6 +152,7 @@ jobs:
151152 run : |
152153 VERSION=$(node -p "require('./apps/dokploy/package.json').version")
153154 echo "version=$VERSION" >> $GITHUB_OUTPUT
155+ echo "npm_version=${VERSION#v}" >> $GITHUB_OUTPUT
154156
155157 - name : Fetch install.sh
156158 run : |
@@ -181,71 +183,72 @@ jobs:
181183 - name : Checkout
182184 uses : actions/checkout@v4
183185
186+ - uses : pnpm/action-setup@v4
187+ with :
188+ version : 10.22.0
189+
184190 - name : Sync version to MCP repository
185191 run : |
186192 git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/mcp.git /tmp/mcp-repo
187193 cd /tmp/mcp-repo
188194
189- jq --arg v "${{ needs.generate-release.outputs.version }}" '.version = $v' package.json > package.json.tmp
195+ jq --arg v "${{ needs.generate-release.outputs.npm_version }}" '.version = $v' package.json > package.json.tmp
190196 mv package.json.tmp package.json
191197
192- npm install -g pnpm
193198 pnpm install
194199 pnpm run fetch-openapi
195200 pnpm run generate
196201
197202 git config user.name "Dokploy Bot"
198203 git config user.email "[email protected] " 199204 git add -A
200- git commit -m "chore: bump version to ${{ needs.generate-release.outputs.version }}" \
205+ git commit -m "chore: bump version to ${{ needs.generate-release.outputs.npm_version }}" \
201206 -m "Source: ${{ github.repository }}@${{ github.sha }}" \
202207 --allow-empty
203208 git push
204209
205- echo "✅ MCP repo synced to version ${{ needs.generate-release.outputs.version }}"
210+ echo "✅ MCP repo synced to version ${{ needs.generate-release.outputs.npm_version }}"
206211
207212 - name : Sync version to CLI repository
208213 run : |
209214 git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/cli.git /tmp/cli-repo
210215 cd /tmp/cli-repo
211216
212- jq --arg v "${{ needs.generate-release.outputs.version }}" '.version = $v' package.json > package.json.tmp
217+ jq --arg v "${{ needs.generate-release.outputs.npm_version }}" '.version = $v' package.json > package.json.tmp
213218 mv package.json.tmp package.json
214219
215220 cp ${{ github.workspace }}/openapi.json ./openapi.json
216- npm install -g pnpm
217221 pnpm install
218222 pnpm run generate
219223
220224 git config user.name "Dokploy Bot"
221225 git config user.email "[email protected] " 222226 git add -A
223- git commit -m "chore: bump version to ${{ needs.generate-release.outputs.version }}" \
227+ git commit -m "chore: bump version to ${{ needs.generate-release.outputs.npm_version }}" \
224228 -m "Source: ${{ github.repository }}@${{ github.sha }}" \
225229 --allow-empty
226230 git push
227231
228- echo "✅ CLI repo synced to version ${{ needs.generate-release.outputs.version }}"
232+ echo "✅ CLI repo synced to version ${{ needs.generate-release.outputs.npm_version }}"
229233
230234 - name : Sync version to SDK repository
231235 run : |
232236 git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/sdk.git /tmp/sdk-repo
233237 cd /tmp/sdk-repo
234238
235- jq --arg v "${{ needs.generate-release.outputs.version }}" '.version = $v' package.json > package.json.tmp
239+ jq --arg v "${{ needs.generate-release.outputs.npm_version }}" '.version = $v' package.json > package.json.tmp
236240 mv package.json.tmp package.json
237241
238242 cp ${{ github.workspace }}/openapi.json ./openapi.json
239- npm install -g pnpm
240243 pnpm install
241244 pnpm run generate
242245
243246 git config user.name "Dokploy Bot"
244247 git config user.email "[email protected] " 245248 git add -A
246- git commit -m "chore: bump version to ${{ needs.generate-release.outputs.version }}" \
249+ git commit -m "chore: bump version to ${{ needs.generate-release.outputs.npm_version }}" \
247250 -m "Source: ${{ github.repository }}@${{ github.sha }}" \
248251 --allow-empty
249252 git push
250253
251- echo "✅ SDK repo synced to version ${{ needs.generate-release.outputs.version }}"
254+ echo "✅ SDK repo synced to version ${{ needs.generate-release.outputs.npm_version }}"
0 commit comments