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

40 lines
851 B
YAML
Raw Normal View History

2021-07-25 12:33:22 -05:00
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
2021-07-29 04:46:28 -05:00
- uses: actions/setup-node@v2
with:
node-version: '14'
2021-07-25 12:33:22 -05:00
2021-07-29 04:46:28 -05:00
# https://github.com/actions/cache/blob/main/examples.md#node---npm
2021-07-25 12:33:22 -05:00
- uses: actions/cache@v2
with:
2021-07-29 04:46:28 -05:00
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2021-07-25 12:33:22 -05:00
restore-keys: |
2021-07-29 04:46:28 -05:00
${{ runner.os }}-node-
2021-07-25 12:33:22 -05:00
- name: Install packages
2021-07-29 04:46:28 -05:00
run: npm ci
2021-07-25 12:33:22 -05:00
- name: Lint
working-directory: packages/schemas
2021-07-29 04:46:28 -05:00
run: npm run lint
2021-07-25 12:33:22 -05:00
- name: Build
working-directory: packages/schemas
2021-07-29 04:46:28 -05:00
run: npm run build