File tree Expand file tree Collapse file tree 1 file changed +2
-37
lines changed
Expand file tree Collapse file tree 1 file changed +2
-37
lines changed Original file line number Diff line number Diff line change 3232
3333 - name : Bump version
3434 id : bump-version
35- run : |
36- OLD_VERSION=$(jq -r .version package.json)
37- yarn version patch
38- NEW_VERSION=$(jq -r .version package.json)
39- echo "old_version=$OLD_VERSION" >> $GITHUB_OUTPUT
40- echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
41- echo "Bumped version from $OLD_VERSION to $NEW_VERSION" >> $GITHUB_STEP_SUMMARY
42-
43- - name : Confirm version
44- id : target-version
4535 env :
46- VERSION : ${{ steps.bump-version.outputs.new_version }}
47- shell : bash
36+ GIT_USERNAME : ${{ steps.setup-git.outputs.user-name }}
4837 run : |
49- echo "Bumped version to $VERSION"
50-
51- echo "version=$VERSION" >> $GITHUB_OUTPUT
52- echo "version_tag=v$VERSION" >> $GITHUB_OUTPUT
53- echo "Target version: $VERSION" >> $GITHUB_STEP_SUMMARY
54- echo "Version tag: v$VERSION" >> $GITHUB_STEP_SUMMARY
55-
56- - name : Create Tag
57- id : tagging
58- shell : bash
59- env :
60- GH_TOKEN : ${{ steps.setup-git.outputs.token }}
61- GH_USERNAME : ${{ steps.setup-git.outputs.user_name }}
62- GH_EMAIL : ${{ steps.setup-git.outputs.user_email }}
63- run : |
64- echo "${{ steps.setup-git.outputs.user_name }}" >> $GITHUB_STEP_SUMMARY
65- echo "${{ steps.setup-git.outputs.user_email }}" >> $GITHUB_STEP_SUMMARY
66-
67- # gh api \
68- # --method POST \
69- # -H "Accept: application/vnd.github+json" \
70- # -H "X-GitHub-Api-Version: 2022-11-28" \
71- # /repos/${{ github.repository }}/git/refs \
72- # -f 'ref=refs/tags/${{ steps.target-version.outputs.version-tag }}' \
73- # -f 'sha=${{ steps.commit.outputs.commit }}'
38+ echo "$GIT_USERNAME"
You can’t perform that action at this time.
0 commit comments