Skip to content

Commit

Permalink
ci: allow to publish wrappers separately
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Jan 8, 2024
1 parent fd44f1b commit 21faedd
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ on:
required: true
default: false
type: boolean
publish-wrappers:
description: "Publish Wrappers to Registries"
publish-python-wrapper:
description: "Publish Python Wrapper to Registries"
required: true
default: false
type: boolean
publish-javascript-wrapper:
description: "Publish JavaScript Wrapper to Registries"
required: true
default: false
type: boolean
Expand Down Expand Up @@ -243,7 +248,7 @@ jobs:
- name: Publish JavaScript Wrapper
if: |
github.event_name == 'release' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.publish-wrappers == 'true')
(github.event_name == 'workflow_dispatch' && github.event.inputs.publish-javascript-wrapper == 'true')
run: |
if [[ $(cat lerna.json | grep version | head -1 | grep dev) ]]; then
npx lerna publish from-package --no-push --no-private --yes --no-git-tag-version --dist-tag=alpha
Expand All @@ -253,7 +258,6 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}


build-py:
name: Build Python
needs: [build-release]
Expand Down Expand Up @@ -321,7 +325,7 @@ jobs:
- if: |
(github.event_name == 'release' ||
(github.event_name == 'workflow_dispatch' &&
github.event.inputs.publish-wrappers == 'true'))
github.event.inputs.publish-python-wrapper == 'true'))
name: Publish python package
working-directory: wrappers/python
env:
Expand Down

0 comments on commit 21faedd

Please sign in to comment.