-
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.
Setup package bump automation workflow
- Loading branch information
1 parent
3dfa019
commit 632d64e
Showing
8 changed files
with
347 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Package bump Admin UI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout admin-ui repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: injectiveLabs/injective-admin-ui | ||
path: admin-ui | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd admin-ui | ||
yarn install | ||
- name: Commit changes | ||
run: | | ||
cd admin-ui | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git add . | ||
git commit -m "chore: package bump" | ||
- name: Push changes | ||
run: | | ||
cd admin-ui | ||
git push origin master |
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,41 @@ | ||
name: Package bump Bridge | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout bridge repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: injectiveLabs/injective-bridge | ||
path: bridge | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd bridge | ||
yarn install | ||
- name: Commit changes | ||
run: | | ||
cd bridge | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git add . | ||
git commit -m "chore: package bump" | ||
- name: Push changes | ||
run: | | ||
cd bridge | ||
git push origin dev |
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,41 @@ | ||
name: Package bump Explorer | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout explorer repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: injectiveLabs/injective-explorer | ||
path: explorer | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd explorer | ||
yarn install | ||
- name: Commit changes | ||
run: | | ||
cd explorer | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git add . | ||
git commit -m "chore: package bump" | ||
- name: Push changes | ||
run: | | ||
cd explorer | ||
git push origin dev |
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,41 @@ | ||
name: Package bump Helix | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout helix repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: injectiveLabs/injective-helix | ||
path: helix | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd helix | ||
yarn install | ||
- name: Commit changes | ||
run: | | ||
cd helix | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git add . | ||
git commit -m "chore: package bump" | ||
- name: Push changes | ||
run: | | ||
cd helix | ||
git push origin dev |
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,41 @@ | ||
name: Package bump Hub | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout hub repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: injectiveLabs/injective-hub | ||
path: hub | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd hub | ||
yarn install | ||
- name: Commit changes | ||
run: | | ||
cd hub | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git add . | ||
git commit -m "chore: package bump" | ||
- name: Push changes | ||
run: | | ||
cd hub | ||
git push origin dev |
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,60 @@ | ||
name: Package bump Layer | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout injective-ui repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: InjectiveLabs/injective-ui | ||
path: injective-ui | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd injective-ui | ||
cd layer | ||
yarn install | ||
- name: Commit changes | ||
run: | | ||
cd injective-ui | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git add . | ||
git commit -m "chore: package bump" | ||
- name: Push changes | ||
run: | | ||
cd injective-ui | ||
git push origin master | ||
- name: Get Pull Request Number | ||
run: | | ||
echo ${{ github.event.issue.number }} | ||
echo ${{ github }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
|
||
# - name: Create branch | ||
# run: | | ||
# cd injective-ui | ||
# git checkout -b update-from-shared-packages | ||
|
||
# - name: Create Pull Request | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
# run: | | ||
# gh pr create --repo InjectiveLabs/injective-ui --head update-from-shared-packages --base master --title "Package bump" --body "This is an automated pull request created by GitHub Actions." |
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,41 @@ | ||
name: Package bump Mito | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout mito-ui repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: mitoFinance/mito-ui | ||
path: mito-ui | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd mito-ui | ||
yarn install | ||
- name: Commit changes | ||
run: | | ||
cd mito-ui | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git add . | ||
git commit -m "chore: package bump" | ||
- name: Push changes | ||
run: | | ||
cd mito-ui | ||
git push origin dev |
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,41 @@ | ||
name: Package bump OLP | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout olp repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: injectiveLabs/injective-dmm-v2 | ||
path: olp | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd olp | ||
yarn install | ||
- name: Commit changes | ||
run: | | ||
cd olp | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git add . | ||
git commit -m "chore: package bump" | ||
- name: Push changes | ||
run: | | ||
cd olp | ||
git push origin master |