forked from router-protocol/tangled
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (41 loc) · 1.04 KB
/
main.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
# .github main.yml
# Check prettier formatting
# Perform ESLint check
# Build the project
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Setup npmrc
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
- name: Install dependencies
run: pnpm install
- name: Check linting
run: pnpm run lint
- name: Build packages
run: pnpm run build
- name: Build React example
run: pnpm run build:example
- name: Build Next example
run: pnpm run build:example-next
- name: Check formatting
run: pnpm run format