diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4dcc1eca5..08e0082cf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,6 +10,10 @@ on: description: 'Dry run (no actual publish)' type: boolean default: true + projects: + description: 'Optional comma-separated project list to publish instead of the full release group' + type: string + default: '' jobs: publish: @@ -58,10 +62,29 @@ jobs: - name: Publish to npm if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.dry-run == false) - run: npx nx release publish --groups=publishable + run: | + if [ -n "${NPM_PUBLISH_PROJECTS}" ]; then + IFS=',' read -ra projects <<< "${NPM_PUBLISH_PROJECTS}" + for project in "${projects[@]}"; do + npx nx run "${project}:nx-release-publish" + done + else + npx nx release publish --groups=publishable + fi env: NPM_CONFIG_PROVENANCE: 'true' + NPM_PUBLISH_PROJECTS: ${{ github.event_name == 'workflow_dispatch' && inputs.projects || '' }} - name: Publish to npm (dry run) if: github.event_name == 'workflow_dispatch' && inputs.dry-run == true - run: npx nx release publish --groups=publishable --dry-run + run: | + if [ -n "${NPM_PUBLISH_PROJECTS}" ]; then + IFS=',' read -ra projects <<< "${NPM_PUBLISH_PROJECTS}" + for project in "${projects[@]}"; do + npx nx run "${project}:nx-release-publish" --dryRun + done + else + npx nx release publish --groups=publishable --dry-run + fi + env: + NPM_PUBLISH_PROJECTS: ${{ inputs.projects }} diff --git a/libs/telemetry/package.json b/libs/telemetry/package.json index d4921862a..a92995830 100644 --- a/libs/telemetry/package.json +++ b/libs/telemetry/package.json @@ -2,6 +2,9 @@ "name": "@ngaf/telemetry", "version": "0.0.30", "license": "MIT", + "publishConfig": { + "access": "public" + }, "repository": { "type": "git", "url": "https://github.com/cacheplane/angular-agent-framework.git",