Skip to content

Commit 892b525

Browse files
committed
style: format github actions
1 parent 30fe103 commit 892b525

File tree

2 files changed

+47
-49
lines changed

2 files changed

+47
-49
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,38 @@
11
name: Release
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
- alpha
8-
- beta
9-
- next
4+
push:
5+
branches:
6+
- main
7+
- alpha
8+
- beta
9+
- next
1010

1111
jobs:
12+
release:
13+
name: 🚀 Release
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
1220

13-
release:
14-
name: 🚀 Release
15-
runs-on: ubuntu-latest
16-
steps:
21+
- name: Use Node.js v16.x
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: 16.x
1725

18-
- name: Check out code
19-
uses: actions/checkout@v3
20-
with:
21-
fetch-depth: 0
26+
- name: Install dependencies
27+
run: npm ci
2228

23-
- name: Use Node.js v16.x
24-
uses: actions/setup-node@v1
25-
with:
26-
node-version: 16.x
29+
- name: Run unit tests
30+
run: npm test
31+
env:
32+
CI: true
2733

28-
- name: Install dependencies
29-
run: npm ci
30-
31-
- name: Run unit tests
32-
run: npm test
33-
env:
34-
CI: true
35-
36-
- name: Build and publish release
37-
run: npm run release
38-
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
- name: Build and publish release
35+
run: npm run release
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ name: Unit Tests
33
on: [push, pull_request]
44

55
jobs:
6-
test:
7-
runs-on: ubuntu-latest
6+
test:
7+
runs-on: ubuntu-latest
88

9-
strategy:
10-
matrix:
11-
node-version: [14.x, 16.x, 18.x]
9+
strategy:
10+
matrix:
11+
node-version: [14.x, 16.x, 18.x]
1212

13-
steps:
14-
- uses: actions/checkout@v2
13+
steps:
14+
- uses: actions/checkout@v2
1515

16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: ${{ matrix.node-version }}
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
2020

21-
- name: Install dependencies
22-
run: npm ci
23-
24-
- name: Run unit tests
25-
run: npm test
26-
env:
27-
CI: true
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Run unit tests
25+
run: npm test
26+
env:
27+
CI: true

0 commit comments

Comments
 (0)