Skip to content

Commit 3d1463e

Browse files
committedMar 15, 2024
feat: support semantic-release
1 parent 84f77e3 commit 3d1463e

File tree

4 files changed

+14833
-9298
lines changed

4 files changed

+14833
-9298
lines changed
 

‎.github/workflows/release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version-file: '.nvmrc'
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Lint
23+
run: npm run lint
24+
- name: Test
25+
run: npm run test
26+
- name: Build
27+
run: npm run build
28+
- name: Coverage
29+
uses: codecov/codecov-action@v4
30+
- name: Release
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }}
33+
NPM_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_NPM_TOKEN }}
34+
run: npx semantic-release@22

‎.releaserc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"branches": [
3+
"master"
4+
],
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
"@semantic-release/npm",
9+
"@semantic-release/github"
10+
]
11+
}
12+

0 commit comments

Comments
 (0)