0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/.github/workflows/phrases-main.yml
2021-07-29 17:46:28 +08:00

39 lines
851 B
YAML

name: Phrases
on:
push:
branches: [ master ]
paths: [ 'packages/phrases/**' ]
pull_request:
branches: [ master ]
paths: [ 'packages/phrases/**' ]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
# https://github.com/actions/cache/blob/main/examples.md#node---npm
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install packages
run: npm ci
- name: Lint
working-directory: packages/phrases
run: npm run lint
- name: Build
working-directory: packages/phrases
run: npm run build