Skip to content

Commit ac52816

Browse files
committed
build: support semantic-release
1 parent dde2b00 commit ac52816

File tree

5 files changed

+5187
-446
lines changed

5 files changed

+5187
-446
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Test and Build
33
on:
44
push:
55
branches:
6+
- master
67
- $default_branch
78
pull_request:
89

@@ -23,20 +24,4 @@ jobs:
2324
- name: Type checking
2425
run: npm run test:types
2526
- name: Unit tests
26-
run: npm run test:unit:ci
27-
build:
28-
needs: tests
29-
runs-on: ubuntu-latest
30-
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v3
33-
- name: Using Node.JS
34-
uses: actions/setup-node@v3
35-
with:
36-
node-version-file: '.nvmrc'
37-
- name: Install dependencies
38-
run: npm ci
39-
- name: Build project
40-
run: npm run build
41-
42-
27+
run: npm run test:unit:ci

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_run:
5+
workflows: [Test And Build]
6+
types: [completed]
7+
push:
8+
branches:
9+
- master
10+
- $default_branch
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Using Node.JS
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version-file: '.nvmrc'
22+
- name: Install dependencies
23+
run: npm ci
24+
- name: Build project
25+
run: npm run build
26+
-
27+
28+

0 commit comments

Comments
 (0)