Skip to content

Commit 1a1c332

Browse files
committed
ci: updated release action with matrix
1 parent 660249c commit 1a1c332

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,46 @@
1-
name: Release
1+
name: release-master
22

33
on:
44
push:
5-
branches: [master, beta]
5+
branches:
6+
- master
67

78
jobs:
89
ci:
9-
runs-on: ubuntu-latest
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
node: [16]
1016

1117
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v3
18+
- name: Checkout 🛎
19+
uses: actions/checkout@v2
1420
with:
1521
fetch-depth: 0
16-
- name: Use Node.js
17-
uses: actions/setup-node@v3
22+
23+
- name: Setup node env 🏗
24+
uses: actions/setup-node@v2.5.1
1825
with:
19-
node-version: 16
20-
- name: Install dependencies
21-
run: npx ci
22-
- name: Install semantic-release extra plugins
26+
node-version: ${{ matrix.node }}
27+
check-latest: true
28+
29+
- name: Install dependencies 📦
30+
run: npm install
31+
32+
- name: Install semantic-release extra plugins 📦
2333
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
24-
- name: Lint
34+
35+
- name: Run linter 👀
2536
run: npm run lint-fix
26-
- name: Test
37+
38+
- name: Run tests 🧪
2739
run: npm run test:unit-coverage --if-present
40+
2841
- name: Build
29-
run: npm run rollup
42+
run: npm run build
43+
3044
- name: Release
3145
env:
3246
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)