-
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
bab1c4c
commit d5878a3
Showing
2 changed files
with
37 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
update-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "lts/*" | ||
- name: Display version | ||
run: echo '${{ github.event.release.tag_name }}' | ||
- 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 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 add . | ||
git commit -m "[Automated Commit] Update version to ${{ github.event.release.tag_name }}" | ||
git push |
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