Skip to content

Commit 591a7b0

Browse files
committed
ci: make action configs more readable
1 parent 0e6cf2f commit 591a7b0

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/auto-assign.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Auto Assign
2+
23
on:
34
issues:
45
types: [opened]
6+
57
jobs:
68
auto-assign:
79
runs-on: ubuntu-latest
10+
811
steps:
912
- name: 'Auto Assign Issues'
1013
uses: pozil/auto-assign-issue@v1

.github/workflows/build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
name: Build
2+
23
on: [push, pull_request]
4+
35
jobs:
46
build:
57
name: Build (${{ matrix.node_version}}-${{ matrix.os }})
8+
69
runs-on: ${{ matrix.os }}
10+
711
strategy:
812
matrix:
913
node_version: [14]
1014
os: [ubuntu-latest, windows-latest, macos-latest]
15+
1116
steps:
1217
- name: Checkout repository
1318
uses: actions/checkout@v2
19+
1420
- name: Use node ${{ matrix.node_version }}
1521
uses: actions/setup-node@v1
1622
with:
1723
node-version: ${{ matrix.node_version }}
24+
1825
- name: Restore cache
1926
uses: actions/cache@v2
2027
with:
@@ -23,15 +30,20 @@ jobs:
2330
*/*/node_modules
2431
key: ${{ matrix.os }}-${{ matrix.node_version}}-yarn-${{ hashFiles('**/yarn.lock') }}
2532
restore-keys: ${{ matrix.os }}-${{ matrix.node_version }}-yarn-
33+
2634
- name: Install yarn dependencies
27-
run: yarn install
35+
run: yarn Install
36+
2837
- name: Bootstrap lerna packages
2938
run: yarn bootstrap
39+
3040
- name: Build lerna packages
3141
run: yarn build
42+
3243
- name: Lint source code
3344
run: yarn lint
3445
if: matrix.os == 'ubuntu-latest'
46+
3547
- name: Lint package sizes
3648
run: yarn size
3749
if: matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)