Skip to content

Commit 1152b9b

Browse files
committed
chore: use semantic-release via GitHub Actions
1 parent e785576 commit 1152b9b

File tree

2 files changed

+33
-13
lines changed

2 files changed

+33
-13
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
name: CI
22

3-
on:
4-
pull_request:
5-
push:
6-
branches:
7-
- master
8-
# - staging
9-
# - trying
3+
on: pull_request
104

115
jobs:
126
test:
7+
name: Test
8+
139
strategy:
1410
matrix:
1511
# macos-latest doesn't have docker-compose, no manifest for windows-latest
1612
platform: [ubuntu-latest]
13+
1714
runs-on: ${{ matrix.platform }}
1815

1916
steps:
@@ -22,12 +19,6 @@ jobs:
2219
- name: Build the stack
2320
run: docker-compose -f ./tests/db/docker-compose.yml up -d
2421

25-
# HACK: Maybe find a more reliable way to do this
26-
- name: Sleep for 30 seconds
27-
uses: jakejarvis/wait-action@master
28-
with:
29-
time: "30s"
30-
3122
- name: Set up toolchain
3223
uses: actions-rs/toolchain@v1
3324
with:

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Release
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: "12.x"
20+
21+
- name: Release on GitHub
22+
run: |
23+
npm i -g semantic-release
24+
npx semantic-release -p \
25+
@semantic-release/commit-analyzer \
26+
@semantic-release/github \
27+
@semantic-release/release-notes-generator
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)