-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (46 loc) · 1.28 KB
/
deploy-pages.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
50
51
52
53
54
55
name: deploy-pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-deploy:
name: main - Build and deploy
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: cloning repo 🛎
uses: actions/checkout@v3
# Sadly we need this BEFORE actions/setup-node to enable pnpm caching
# wait until https://github.com/actions/setup-node/pull/651 is merged before remove
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version-file: '.nvmrc'
# See line :18
# - name: Enable Node package managers
# shell: bash
# run: corepack enable
- name: Install dependencies
shell: bash
run: pnpm install
- name: Lint
shell: bash
run: pnpm lint
- name: Typecheck
shell: bash
run: pnpm typecheck
- name: Build
shell: bash
run: pnpm build
- name: deploy to github pages 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.