Skip to content

Commit 5a2d9e8

Browse files
Merge pull request BitGo#38 from ericcrosson-bitgo/configure-semantic-release
Configure semantic-release
2 parents ff78c84 + 0048003 commit 5a2d9e8

File tree

10 files changed

+13842
-4813
lines changed

10 files changed

+13842
-4813
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Release
3+
4+
on:
5+
push:
6+
branches: [master, alpha, beta, next, next-major]
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-one: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
cache: npm
23+
node-version: 'lts/*'
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Compile TypeScript
29+
run: npm run build
30+
31+
# Run tests before releasing to verify the code behaves as expected. We expect
32+
# this step to identify some (but not all) semantic merge conflicts
33+
- name: Test
34+
run: npm test
35+
36+
- name: Release
37+
run: npx multi-semantic-release
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.lintstagedrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"*.json": ["prettier --write"],
33
"*.md": ["prettier --write"],
4-
"*.ts": ["prettier --write"]
4+
"*.ts": ["prettier --write"],
5+
"*.yml": ["prettier --write"]
56
}

.releaserc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
"@semrel-extra/npm",
6+
[
7+
"@semantic-release/github",
8+
{
9+
"assignees": ["@BitGo/internal-tools"]
10+
}
11+
]
12+
]
13+
}

0 commit comments

Comments
 (0)