Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Commit a98b127

Browse files
committed
build: migrate to semantic-release
1 parent 32f110a commit a98b127

File tree

6 files changed

+17384
-7674
lines changed

6 files changed

+17384
-7674
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/pr.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Install dependencies
19+
run: npm ci
20+
21+
- name: Lint
22+
run: npm run lint
23+
24+
- name: Unit Test
25+
run: npm test
26+
27+
- name: Build
28+
run: npm run build

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Install dependencies
18+
run: npm ci
19+
20+
- name: Lint
21+
run: npm run lint
22+
23+
- name: Unit Test
24+
run: npm test
25+
26+
- name: Build
27+
run: npm run build
28+
29+
- name: Semantic Release
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
run: npm run semantic-release

.releaserc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"branches": ["master"],
3+
"dryRun": true
4+
}

0 commit comments

Comments
 (0)