Skip to content

Commit

Permalink
Fix package actions (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristidas authored Apr 16, 2024
1 parent 0837828 commit 962b716
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/publish-packages-manually.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Packages
name: Publish Packages Manually

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
Expand Down Expand Up @@ -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 }}

0 comments on commit 962b716

Please sign in to comment.