-
Notifications
You must be signed in to change notification settings - Fork 11
50 lines (42 loc) · 1.13 KB
/
build_packages.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
name: Build NPM packages
on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Build NPM packages
needs: prettier
steps:
# 1. provide Personal Access Token for checkout@v2
# GITHUB_TOKEN (personal access token) always exists in repositories, does not have to be explicitly added
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- name: Install lerna v4
run: |
rm -rf /usr/local/bin/lerna
npm install -g lerna@4.0.0
- name: Install dependencies
run: |
npm ci
lerna bootstrap
- name: Build packages
run: lerna run build
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run prettier
run: |-
npx prettier --check '{**/*,*}.{js,ts,jsx,tsx}'