Skip to content

Commit

Permalink
fix(Using-test-release): Trying to commit and push package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-gale committed Mar 27, 2020
1 parent 8fa8bc8 commit e66efc0
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,13 @@ jobs:
- name: Generate Release
uses: cycjimmy/semantic-release-action@v2.1.3
id: semantic
with:
# You can specify specifying version range for the extra plugins if you prefer.
extra_plugins: |
@semantic-release/changelog@3.0.0
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_PAT }}

- name: Update package.json when new release published
if: steps.semantic.outputs.new_release_published == 'true'
run: |
echo ${{ steps.semantic.outputs.new_release_version }}
echo ${{ steps.semantic.outputs.new_release_major_version }}
echo ${{ steps.semantic.outputs.new_release_minor_version }}
echo ${{ steps.semantic.outputs.new_release_patch_version }}
cat package.json
git config --global user.name ${{ secrets.GIT_USER_NAME }}
git config --global user.email ${{ secrets.GIT_USER_EMAIL }}
git commit -am "package.json updated by semantic-release"
git push

0 comments on commit e66efc0

Please sign in to comment.