forked from flixlix/energy-flow-card-plus
-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 776 Bytes
/
ci.yaml
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
name: CI
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache pnpm modules
id: cache-modules
uses: actions/cache@v2
with:
path: |
~/.pnpm-store
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'rollup.config.js') }}
restore-keys: |
${{ runner.os }}-
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: latest
run_install: false
- name: Install Packages
if: steps.cache-modules.outputs.cache-hit != 'true'
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm build