Skip to content

Commit 0048003

Browse files
fix: configure semantic-release
> Using the `fix` conventional-commits scope instead of `ci` as a > straightforward way to force a release This commit configures semantic-release to publish new versions when semantically appropriate to npm and create a corresponding GitHub Release. This punts management of a changelog to BitGo#37. Closes BitGo#36.
1 parent 1c26670 commit 0048003

File tree

4 files changed

+13833
-4804
lines changed

4 files changed

+13833
-4804
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 }}

.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)