Skip to content

build(deps): bump the vite group across 3 directories with 5 updates #3601

build(deps): bump the vite group across 3 directories with 5 updates

build(deps): bump the vite group across 3 directories with 5 updates #3601

name: Admin Web - Pull Request
on:
pull_request:
branches:
- daily
- release/alpha
- master
paths:
- ".github/workflows/**"
- "packages/@liexp/**/src/**"
- "services/admin-web/**"
env:
ADMIN_WEB_IMAGE_NAME: liexp-admin-web
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-deps
with:
hash: ${{ hashFiles('**/pnpm-lock.yaml') }}
build-packages:
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-deps
with:
hash: ${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: ./.github/actions/build-packages
with:
hash: ${{ github.sha }}
lint:
runs-on: ubuntu-latest
needs: [install, build-packages]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-deps
with:
hash: ${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: ./.github/actions/build-packages
with:
hash: ${{ github.sha }}
- name: Lint code
run: pnpm admin-web lint
build:
runs-on: ubuntu-latest
needs: [install, build-packages]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-deps
with:
hash: ${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: ./.github/actions/build-packages
with:
hash: ${{ github.sha }}
- uses: actions/cache@v4
with:
path: |
services/**/build
key: admin-web-build
- name: Type Check Web
run: pnpm admin-web build
- name: Build app
run: pnpm admin-web build:app
docker_build:
if: ${{ github.head_ref == 'release/alpha' }}
runs-on: ubuntu-latest
needs: [install, build-packages, lint, build]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-deps
with:
hash: ${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Log in to registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build WEB image
uses: docker/build-push-action@v4
with:
context: .
file: ./adminWeb.Dockerfile
push: false
tags: ${{ env.ADMIN_WEB_IMAGE_NAME }}