Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
chore: change FE pipelines (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-silva authored Nov 8, 2023
1 parent 997bdac commit e9bc904
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 57 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,24 @@ jobs:
path: percona-everest-frontend
token: ${{ secrets.ROBOT_TOKEN }}

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Run with Node 16
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Bit Version Manager
run: npm i -g @teambit/bvm

- name: Install latest Bit version
run: bvm install 1.1.0

- name: Add bvm bin folder to path
run: echo "$HOME/bin" >> $GITHUB_PATH

- name: Set up bit config
env:
BIT_TOKEN: ${{ secrets.BIT_TOKEN }}
run: bit config set user.token $BIT_TOKEN
cache: 'pnpm'
cache-dependency-path: percona-everest-frontend/pnpm-lock.yaml

- name: Build Everest Frontend app
run: |
cd ${GITHUB_WORKSPACE}/percona-everest-frontend
bit install --recurring-install
bit snap --build
bit artifacts percona.apps/everest --out-dir ./build
cd percona-everest-frontend
pnpm install
EVEREST_OUT_DIR=build pnpm build
mkdir ${GITHUB_WORKSPACE}/front
cp -rf ./build/percona.apps_everest/artifacts/apps/react-common-js/everest/public/* ${GITHUB_WORKSPACE}/front/
cp -rvf ./build/* ${GITHUB_WORKSPACE}/front/
- name: Check out Everest Backend
uses: actions/checkout@v4
Expand Down
29 changes: 10 additions & 19 deletions .github/workflows/rc_rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,33 +41,24 @@ jobs:
path: percona-everest-frontend
token: ${{ secrets.ROBOT_TOKEN }}

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Run with Node 16
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Bit Version Manager
run: npm i -g @teambit/bvm

- name: Install latest Bit version
run: bvm install 1.1.0

- name: Add bvm bin folder to path
run: echo "$HOME/bin" >> $GITHUB_PATH

- name: Set up bit config
env:
BIT_TOKEN: ${{ secrets.BIT_TOKEN }}
run: bit config set user.token $BIT_TOKEN
cache: 'pnpm'
cache-dependency-path: percona-everest-frontend/pnpm-lock.yaml

- name: Build Everest Frontend app
run: |
cd ${GITHUB_WORKSPACE}/percona-everest-frontend
bit install --recurring-install
bit snap --build
bit artifacts percona.apps/everest --out-dir ./build
cd percona-everest-frontend
pnpm install
EVEREST_OUT_DIR=build pnpm build
mkdir ${GITHUB_WORKSPACE}/front
cp -rvf ./build/percona.apps_everest/artifacts/apps/react-common-js/everest/public/* ${GITHUB_WORKSPACE}/front/
cp -rvf ./build/* ${GITHUB_WORKSPACE}/front/
- name: Check out Everest Backend
uses: actions/checkout@v4
Expand Down
29 changes: 10 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
path: percona-everest-frontend
token: ${{ secrets.ROBOT_TOKEN }}

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Everest Frontend - create tag
run: |
cd percona-everest-frontend
Expand All @@ -56,29 +60,16 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Everest Frontend - install Bit Version Manager
run: npm i -g @teambit/bvm

- name: Everest Frontend - install latest Bit version
run: bvm install 1.1.0

- name: Everest Frontend - add bvm bin folder to path
run: echo "$HOME/bin" >> $GITHUB_PATH

- name: Everest Frontend - set up bit config
env:
BIT_TOKEN: ${{ secrets.BIT_TOKEN }}
run: bit config set user.token $BIT_TOKEN
cache: 'pnpm'
cache-dependency-path: percona-everest-frontend/pnpm-lock.yaml

- name: Everest Frontend - build app
run: |
cd ${GITHUB_WORKSPACE}/percona-everest-frontend
bit install --recurring-install
bit snap --build
bit artifacts percona.apps/everest --out-dir ./build
cd percona-everest-frontend
pnpm install
EVEREST_OUT_DIR=build pnpm build
mkdir ${GITHUB_WORKSPACE}/front
cp -rf ./build/percona.apps_everest/artifacts/apps/react-common-js/everest/public/* ${GITHUB_WORKSPACE}/front/
cp -rvf ./build/* ${GITHUB_WORKSPACE}/front/
- name: Everest Backend - check out
uses: actions/checkout@v4
Expand Down

0 comments on commit e9bc904

Please sign in to comment.