Skip to content

The open alternative to Salesforce, designed for AI.

Allow private CLI staging before SDK publication (#28651)

Félix Malfait6a1e7de9b742
diff --git a/.github/workflows/publish-npm-packages.yaml b/.github/workflows/publish-npm-packages.yaml
index 7771fc5169a..1d0f827bb83 100644
--- a/.github/workflows/publish-npm-packages.yaml
+++ b/.github/workflows/publish-npm-packages.yaml
@@ -96,6 +96,9 @@ jobs:
- name: Stage validation packages without publishing
if: env.STAGE_ONLY == 'true'
run: |
+ # This test stages the SDK before it is publicly available to the CLI's release-readiness check.
+ jq 'del(.scripts.prepublish)' packages/twenty-cli/package.json > "$RUNNER_TEMP/twenty-cli-staging.json"
+ mv "$RUNNER_TEMP/twenty-cli-staging.json" packages/twenty-cli/package.json
for package in $PACKAGES; do
yarn workspace "$package" npm publish --staged --provenance --tag "$DIST_TAG" --access public
echo "Staged $package@$VERSION for OIDC validation only. Do not approve; reject after verification." >> "$GITHUB_STEP_SUMMARY"