|
83 | 83 | cd packages/integrations/vercel-ai |
84 | 84 | pnpm build |
85 | 85 |
|
| 86 | + - name: Build @cascadeflow/paygentic |
| 87 | + run: | |
| 88 | + cd packages/integrations/paygentic |
| 89 | + pnpm build |
| 90 | +
|
86 | 91 | - name: Store @cascadeflow/core package |
87 | 92 | uses: actions/upload-artifact@v4 |
88 | 93 | with: |
@@ -113,6 +118,12 @@ jobs: |
113 | 118 | name: npm-cascadeflow-vercel-ai |
114 | 119 | path: packages/integrations/vercel-ai/ |
115 | 120 |
|
| 121 | + - name: Store @cascadeflow/paygentic package |
| 122 | + uses: actions/upload-artifact@v4 |
| 123 | + with: |
| 124 | + name: npm-cascadeflow-paygentic |
| 125 | + path: packages/integrations/paygentic/ |
| 126 | + |
116 | 127 | publish-to-pypi: |
117 | 128 | name: Publish to PyPI |
118 | 129 | needs: build-python |
@@ -178,6 +189,12 @@ jobs: |
178 | 189 | name: npm-cascadeflow-vercel-ai |
179 | 190 | path: packages/integrations/vercel-ai/ |
180 | 191 |
|
| 192 | + - name: Download @cascadeflow/paygentic |
| 193 | + uses: actions/download-artifact@v4 |
| 194 | + with: |
| 195 | + name: npm-cascadeflow-paygentic |
| 196 | + path: packages/integrations/paygentic/ |
| 197 | + |
181 | 198 | - name: Setup pnpm |
182 | 199 | uses: pnpm/action-setup@v2 |
183 | 200 | with: |
@@ -269,6 +286,21 @@ jobs: |
269 | 286 | env: |
270 | 287 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
271 | 288 |
|
| 289 | + - name: Publish @cascadeflow/paygentic |
| 290 | + run: | |
| 291 | + set -euo pipefail |
| 292 | + cd packages/integrations/paygentic |
| 293 | + PACKAGE_NAME=$(node -p "require('./package.json').name") |
| 294 | + PACKAGE_VERSION=$(node -p "require('./package.json').version") |
| 295 | + if npm view "${PACKAGE_NAME}@${PACKAGE_VERSION}" version > /dev/null 2>&1; then |
| 296 | + echo "${PACKAGE_NAME}@${PACKAGE_VERSION} already exists on npm, skipping." |
| 297 | + exit 0 |
| 298 | + fi |
| 299 | + TARBALL=$(pnpm pack --pack-destination .) |
| 300 | + npm publish "$TARBALL" --access public --provenance |
| 301 | + env: |
| 302 | + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
| 303 | + |
272 | 304 | publish-to-testpypi: |
273 | 305 | name: Publish to TestPyPI |
274 | 306 | needs: build-python |
|
0 commit comments