-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 991 Bytes
/
ci-prensa-v2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Pull Request Check
on:
pull_request:
paths:
- 'packages/xprog-prensa/**'
jobs:
Install-And-Build-Prensa-v2:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: 16.13.1
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: |
~/.npm
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-${{ hashFiles('**/xprog-prensa/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install
run: yarn deps:prensa:v2
- name: Build
run: yarn build:prensa:v2