2021-10-08 21:50:49 +00:00
|
|
|
name: Build and Lint
|
|
|
|
|
|
|
|
on:
|
2021-12-28 19:39:02 +00:00
|
|
|
pull_request:
|
|
|
|
push:
|
2021-10-08 21:50:49 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-12-28 19:39:02 +00:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 15:15:56 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-09-12 11:12:29 +00:00
|
|
|
with:
|
|
|
|
submodules: 'true'
|
2023-05-05 01:19:54 +00:00
|
|
|
- name: Setup pnpm
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: latest
|
2021-12-28 19:39:02 +00:00
|
|
|
- name: Setup Node.js
|
2022-09-10 18:50:54 +00:00
|
|
|
uses: actions/setup-node@v3
|
2021-12-28 19:39:02 +00:00
|
|
|
with:
|
2023-05-05 01:19:54 +00:00
|
|
|
cache: "pnpm"
|
|
|
|
- run: pnpm install
|
|
|
|
- run: pnpm build
|
2023-08-27 15:22:42 +00:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: build
|
|
|
|
path: dist
|
2023-05-05 01:19:54 +00:00
|
|
|
- run: pnpm lint --no-fix
|