0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/.github/workflows/schemas-main.yml
2021-07-29 17:54:43 +08:00

42 lines
942 B
YAML

name: Schemas
on:
push:
branches: [ master ]
paths: [ 'packages/schemas/**' ]
pull_request:
branches: [ master ]
paths: [ 'packages/schemas/**' ]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.0.2
run_install: true
- name: Lint
working-directory: packages/schemas
run: npm run lint
- name: Build
working-directory: packages/schemas
run: npm run build