-
-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 1 KB
/
build-pr.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: Build pull request
on:
pull_request:
types: ["opened", "synchronize"]
jobs:
build-pull-request:
name: "Build pull request"
runs-on: ubuntu-latest
env:
PR_NUMBER: ${{github.event.number}}
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup node
uses: actions/[email protected]
with:
node-version: 18.12.1
cache: "npm"
- name: Install dependencies
run: npm ci
- run: npm run lint
- run: npm run typecheck
- name: Build storybook
run: npm run build-storybook
- name: Upload artifact
uses: actions/[email protected]
with:
name: preview
path: storybook-static
retention-days: 1
- name: Save pr number
run: echo ${PR_NUMBER} > ./pr.txt
- name: Upload pr number
uses: actions/[email protected]
with:
name: pr
path: ./pr.txt
retention-days: 1