-
-
Notifications
You must be signed in to change notification settings - Fork 52
48 lines (40 loc) · 1.04 KB
/
pr-preview.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
on: [pull_request]
name: PR preview
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
name: Generate PR preview
steps:
- name: Checkout
uses: akarys42/checkout-with-filter@main
with:
filter: 'blob:none'
fetch-depth: 0
- name: Enable Corepack shims
run: corepack enable
- name: Install dependencies
run: pnpm install
- name: Build the project
run: pnpm build
- name: Upload HTML artifact
uses: actions/upload-artifact@v2
with:
name: website-html
path: dist
retention-days: 1
- name: Upload Functions artifact
uses: actions/upload-artifact@v2
with:
name: website-functions
path: functions
retention-days: 1
- name: Upload package artifact
uses: actions/upload-artifact@v2
with:
name: website-package
path: |
package.json
pnpm-lock.yaml
retention-days: 1