Publish Packages Manually #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Packages Manually | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: false | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch name' | |
required: true | |
type: choice | |
options: | |
- 'main' | |
- 'dev' | |
- 'fix-automated-package-actions3' | |
publish_option: | |
description: 'Select package(s) to publish' | |
required: true | |
type: choice | |
options: | |
- 'common' | |
- 'client' | |
- 'all' | |
jobs: | |
publish-common: | |
name: Publish Common Package | |
runs-on: ubuntu-latest | |
if: >- | |
((github.event.inputs.publish_option == 'common') || (github.event.inputs.publish_option == 'all')) | |
steps: | |
- name: Checkout all files | |
id: checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.branch }} | |
- name: Publish the package to npmjs | |
id: build_image | |
uses: ./.github/actions/publish-common | |
with: | |
npm_access_token: ${{ secrets.NPM_ACCESS_TOKEN }} | |
publish-client: | |
name: Publish Client Package | |
runs-on: ubuntu-latest | |
if: >- | |
((github.event.inputs.publish_option == 'client') || (github.event.inputs.publish_option == 'all')) | |
steps: | |
- name: Checkout all files | |
id: checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.branch }} | |
- name: Publish the package to npmjs | |
id: build_image | |
uses: ./.github/actions/publish-client | |
with: | |
npm_access_token: ${{ secrets.NPM_ACCESS_TOKEN }} |