From 962b7162809d782248494fec3083a51efb83facf Mon Sep 17 00:00:00 2001 From: Cristian Dascalu Date: Tue, 16 Apr 2024 16:08:22 +0200 Subject: [PATCH] Fix package actions (#176) --- .../workflows/publish-packages-manually.yaml | 38 ++++++++++++++----- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-packages-manually.yaml b/.github/workflows/publish-packages-manually.yaml index 4741c59835..6933eed4d8 100644 --- a/.github/workflows/publish-packages-manually.yaml +++ b/.github/workflows/publish-packages-manually.yaml @@ -1,4 +1,4 @@ -name: Publish Packages +name: Publish Packages Manually concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} @@ -52,21 +52,41 @@ jobs: fi publish-common: + name: Publish Common Package + runs-on: ubuntu-latest needs: prepare if: >- (needs.prepare.outputs.common_changed == 'true') && ((github.event.inputs.publish_option == 'common') || (github.event.inputs.publish_option == 'all')) - uses: ./.github/workflows/publish-common-package.yaml - with: - npm_access_token: ${{ secrets.NPM_ACCESS_TOKEN }} - version_changed: ${{ needs.prepare.outputs.common_changed }} + + steps: + - name: Checkout all files + id: checkout + uses: actions/checkout@v4 + + - name: Publish the package to npmjs + id: build_image + uses: ./.github/workflows/publish-common-package.yaml + with: + npm_access_token: ${{ secrets.NPM_ACCESS_TOKEN }} + version_changed: ${{ needs.prepare.outputs.common_changed }} publish-client: + name: Publish Client Package + runs-on: ubuntu-latest needs: prepare if: >- (needs.prepare.outputs.client_changed == 'true') && ((github.event.inputs.publish_option == 'client') || (github.event.inputs.publish_option == 'all')) - uses: ./.github/workflows/publish-client-package.yaml - with: - npm_access_token: ${{ secrets.NPM_ACCESS_TOKEN }} - version_changed: ${{ needs.prepare.outputs.client_changed }} + + steps: + - name: Checkout all files + id: checkout + uses: actions/checkout@v4 + + - name: Publish the package to npmjs + id: build_image + uses: ./.github/workflows/publish-client-package.yaml + with: + npm_access_token: ${{ secrets.NPM_ACCESS_TOKEN }} + version_changed: ${{ needs.prepare.outputs.client_changed }}