Skip to content

Commit

Permalink
feat(publish-action): add workspaces and options support
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcome committed Jul 23, 2024
1 parent e93ca9c commit 98758ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ inputs:
description: The version tag to release, the default is latest
required: false
default: latest
workspaces:
description: Publish all packages in all workspaces
required: false
options:
description: Additional options for `npm publish` command
required: false

# https://actions-cool.github.io/github-action-branding/
branding:
Expand Down Expand Up @@ -59,7 +65,7 @@ runs:
- name: Publish
shell: bash
run: npm publish --tag ${{ inputs.tag }}
run: npm publish --tag ${{ inputs.tag }} ${{ inputs.workspaces && '-ws' || '' }} ${{ inputs.options }}

- name: Restore the original .npmrc file
if: always()
Expand Down

0 comments on commit 98758ed

Please sign in to comment.