-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Will
committed
Aug 14, 2023
1 parent
d5878a3
commit fdf0268
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |