Skip to content

Commit 976880b

Browse files
author
Christopher J Baker
committed
fix workflow
1 parent 515ef8d commit 976880b

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,22 @@ runs:
3535
3636
- name: Increment Version
3737
shell: bash
38-
working-directory: ./packages/${{ inputs.directory }}
3938
run: |
4039
git config --local user.email "Workflow: ${{ inputs.package }}[bot]"
4140
git config --local user.name "${{ inputs.package }}[bot]@workflow"
4241
43-
TAG_CMD="--tag-version-prefix ${{ inputs.package }}/v"
44-
MESSAGE="Publish ${{ inputs.package }} v%s"
42+
WORKSPACE_CMD="--workspace packages/${{ inputs.directory }}"
4543
4644
if [[ ${{ inputs.segment }} == pre* ]]; then
4745
if [[ -n "${{ inputs.preId }}" ]]; then
4846
PREID_CMD="--preid ${{ inputs.preId }}"
4947
fi
5048
fi
5149
52-
npm version ${{ inputs.segment }} $PREID_CMD $TAG_CMD -m "$MESSAGE"
50+
VERSION="$(npm version ${{ inputs.segment }} $PREID_CMD $WORKSPACE_CMD)"
51+
52+
git commit --message "Publish ${{ inputs.package }} v$MESSAGE"
53+
git tag "${{ inputs.package }}/v$VERSION"
5354
5455
- name: Push Tag
5556
uses: ad-m/github-push-action@master

package-lock.json

Lines changed: 5 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react-to-web-component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@r2wc/react-to-web-component",
3-
"version": "1.0.0-alpha.0",
3+
"version": "1.0.0-alpha.1",
44
"description": "Convert React components to native Web Components.",
55
"homepage": "https://www.bitovi.com/frontend-javascript-consulting/react-consulting",
66
"author": "Bitovi",

0 commit comments

Comments
 (0)