From 21faedda716941309659bfa46238a2ad4bfe2003 Mon Sep 17 00:00:00 2001 From: Timo Glastra Date: Mon, 8 Jan 2024 08:55:27 +0700 Subject: [PATCH] ci: allow to publish wrappers separately Signed-off-by: Timo Glastra --- .github/workflows/build.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0bdda9af..10e1fadf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -253,7 +258,6 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - build-py: name: Build Python needs: [build-release] @@ -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: