Skip to content

Commit

Permalink
Setup package bump automation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kishan-Dhakan authored Jul 2, 2024
1 parent 3dfa019 commit 632d64e
Show file tree
Hide file tree
Showing 8 changed files with 347 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/admin-ui.yaml
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
41 changes: 41 additions & 0 deletions .github/workflows/bridge.yaml
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
41 changes: 41 additions & 0 deletions .github/workflows/explorer.yaml
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
41 changes: 41 additions & 0 deletions .github/workflows/helix.yaml
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
41 changes: 41 additions & 0 deletions .github/workflows/hub.yaml
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
60 changes: 60 additions & 0 deletions .github/workflows/layer.yaml
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."
41 changes: 41 additions & 0 deletions .github/workflows/mito.yaml
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
41 changes: 41 additions & 0 deletions .github/workflows/olp.yaml
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

0 comments on commit 632d64e

Please sign in to comment.