123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- name: yudao-ui-admin CI
- on:
- push:
- branches: [ master ]
-
-
- env:
- TZ: Asia/Shanghai
- WORK_DIR: yudao-ui-admin
- defaults:
- run:
- shell: bash
- working-directory: yudao-ui-admin
- jobs:
- build:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: [14.x, 16.x]
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
-
- - name: Install pnpm
- uses: pnpm/action-setup@v2.0.1
- with:
- version: 6.15.1
- - name: Set node version to ${{ matrix.node_version }}
- uses: actions/setup-node@v2
- with:
- node-version: ${{ matrix.node_version }}
- cache: "yarn"
- cache-dependency-path: yudao-ui-admin/yarn.lock
- - name: Install deps
- run: node --version && yarn --version && yarn install
- - name: Build
- run: yarn build:prod
-
-
-
|