Skip to content

Commit

Permalink
Update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Aug 14, 2023
1 parent d5878a3 commit fdf0268
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,24 @@ jobs:
with:
node-version: "lts/*"
- name: Display version
run: echo '${{ github.event.release.tag_name }}'
run: |
VERSION=${{ github.event.release.tag_name}}
echo '${{ VERSION#v }}'
- name: Update package.json version
run: |
npm version ${{ github.event.release.tag_name }}
git config user.name github-actions
git config user.email [email protected]
git config user.name "github-actions"
git config user.email "[email protected]"
git add .
git commit -m "[Automated Commit] Update version to ${{ github.event.release.tag_name }}"
git push
- name: Update react package.json version
run: |
cd react
npm version ${{ github.event.release.tag_name }}
git config user.name github-actions
git config user.email [email protected]
git config user.name "github-actions"
git config user.email "[email protected]"
git add .
git commit -m "[Automated Commit] Update version to ${{ github.event.release.tag_name }}"
git push

0 comments on commit fdf0268

Please sign in to comment.