File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
.github/actions/publish-npm Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,17 +39,17 @@ runs:
39
39
git config --local user.email "Workflow: ${{ inputs.package }}[bot]"
40
40
git config --local user.name "${{ inputs.package }}[bot]@workflow"
41
41
42
- WORKSPACE_CMD="--workspace packages/${{ inputs.directory }}"
42
+ DIRECTORY="./ packages/${{ inputs.directory }}"
43
43
44
44
if [[ ${{ inputs.segment }} == pre* ]]; then
45
45
if [[ -n "${{ inputs.preId }}" ]]; then
46
46
PREID_CMD="--preid ${{ inputs.preId }}"
47
47
fi
48
48
fi
49
49
50
- npm version ${{ inputs.segment }} $PREID_CMD $WORKSPACE_CMD
50
+ npm version ${{ inputs.segment }} $PREID_CMD --workspace $DIRECTORY
51
51
52
- VERSION="$(cat package.json | jq -r '.version')"
52
+ VERSION="$(cat $DIRECTORY/ package.json | jq -r '.version')"
53
53
git commit --all --message "Publish ${{ inputs.package }} v$MESSAGE"
54
54
git tag "${{ inputs.package }}/v$VERSION"
55
55
You can’t perform that action at this time.
0 commit comments