Skip to content

Commit 25ba8a5

Browse files
authored
Merge pull request #124 from NorwegianVeterinaryInstitute/semantic_versioning
fix: added semantic versioning, as of #121
2 parents a07a8d8 + 20fa052 commit 25ba8a5

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: '20'
17+
18+
- name: Install dependencies
19+
run: npm install semantic-release @semantic-release/changelog @semantic-release/git
20+
21+
- name: Run semantic-release
22+
run: npx semantic-release
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

release.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const config = {
2+
branches: ['main'],
3+
plugins: [
4+
'@semantic-release/commit-analyzer',
5+
'@semantic-release/release-notes-generator',
6+
["@semantic-release/git", {
7+
"assets": ["dist/*.js", "dist/*.js.map"],
8+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
9+
}],
10+
'@semantic-release/github'
11+
]
12+
};
13+
14+
module.exports = config;

0 commit comments

Comments
 (0)