Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
3 changes: 3 additions & 0 deletions libs/telemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading