Skip to content

Commit ef048c8

Browse files
author
Christopher J Baker
committed
fix commit version
1 parent 651d91e commit ef048c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/actions/publish-npm/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ runs:
3939
git config --local user.email "Workflow: ${{ inputs.package }}[bot]"
4040
git config --local user.name "${{ inputs.package }}[bot]@workflow"
4141
42-
WORKSPACE_CMD="--workspace packages/${{ inputs.directory }}"
42+
DIRECTORY="./packages/${{ inputs.directory }}"
4343
4444
if [[ ${{ inputs.segment }} == pre* ]]; then
4545
if [[ -n "${{ inputs.preId }}" ]]; then
4646
PREID_CMD="--preid ${{ inputs.preId }}"
4747
fi
4848
fi
4949
50-
npm version ${{ inputs.segment }} $PREID_CMD $WORKSPACE_CMD
50+
npm version ${{ inputs.segment }} $PREID_CMD --workspace $DIRECTORY
5151
52-
VERSION="$(cat package.json | jq -r '.version')"
52+
VERSION="$(cat $DIRECTORY/package.json | jq -r '.version')"
5353
git commit --all --message "Publish ${{ inputs.package }} v$MESSAGE"
5454
git tag "${{ inputs.package }}/v$VERSION"
5555

0 commit comments

Comments
 (0)