-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (33 loc) · 943 Bytes
/
pull-request.yml
File metadata and controls
34 lines (33 loc) · 943 Bytes
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
name: PR Checks
on:
pull_request:
branches: [master]
jobs:
build_and_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
registry-url: https://npm.pkg.github.com/
cache: npm
- name: restore_cache
uses: actions/cache@v3
with:
key: npm-v1-{{ hashFiles(".nvmrc") }}-{{ hashFiles("package-lock.json") }}
restore-keys: npm-v1-{{ hashFiles(".nvmrc") }}
path: node_modules
- name: Install Dependencies
run: npm install
env:
NODE_ENV: development
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Build Storybook
run: npm run build-storybook
env:
NODE_OPTIONS: --openssl-legacy-provider