-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1005 Bytes
/
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
name: deploy-pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-deploy:
name: main - Build and deploy
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: cloning repo 🛎
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- 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.