2021-10-09 03:20:49 +05:30
|
|
|
name: Build and Lint
|
|
|
|
|
|
|
|
on:
|
2021-12-29 01:09:02 +05:30
|
|
|
pull_request:
|
|
|
|
push:
|
2021-10-09 03:20:49 +05:30
|
|
|
|
|
|
|
jobs:
|
2021-12-29 01:09:02 +05:30
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 20:45:56 +05:30
|
|
|
- uses: actions/checkout@v4
|
2023-05-05 06:49:54 +05:30
|
|
|
- name: Setup pnpm
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: latest
|
2021-12-29 01:09:02 +05:30
|
|
|
- name: Setup Node.js
|
2023-10-23 21:56:43 +05:30
|
|
|
uses: actions/setup-node@v4
|
2021-12-29 01:09:02 +05:30
|
|
|
with:
|
2023-05-05 06:49:54 +05:30
|
|
|
cache: "pnpm"
|
|
|
|
- run: pnpm install
|
|
|
|
- run: pnpm build
|
2023-08-27 20:52:42 +05:30
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: build
|
|
|
|
path: dist
|
2023-05-05 06:49:54 +05:30
|
|
|
- run: pnpm lint --no-fix
|