Skip to content

chore: upgrade node to v22 #4213

chore: upgrade node to v22

chore: upgrade node to v22 #4213

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