-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (41 loc) · 1.24 KB
/
cd-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
41
42
43
44
45
46
47
48
49
name: Package Deploy - Prensa v2
on:
push:
branches:
- master
paths:
- packages/xprog-prensa/**
jobs:
Package-Deploy-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('packages/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
- name: Generate release
run: yarn release:prensa:v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}