generated from threeal/nodejs-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 946 Bytes
/
build.yaml
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: Build
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
build-library:
name: Build Library
runs-on: ubuntu-22.04
steps:
- name: Checkout Project
uses: actions/checkout@v4.2.2
- name: Setup Node.js
uses: actions/setup-node@v4.1.0
with:
node-version-file: .nvmrc
- name: Setup Yarn
uses: threeal/setup-yarn-action@v2.0.0
- name: Check Formatting
run: |
yarn format
git diff --exit-code HEAD
- name: Check Lint
run: yarn lint
- name: Test Library
run: yarn test
- name: Build Documentation
run: yarn docs
- name: Package Library
run: yarn pack
- name: Upload Package
uses: actions/upload-artifact@v4.4.3
with:
name: package
path: package.tgz
if-no-files-found: error
overwrite: true