File tree Expand file tree Collapse file tree 6 files changed +95
-82
lines changed Expand file tree Collapse file tree 6 files changed +95
-82
lines changed Original file line number Diff line number Diff line change 60
60
cat semantic-release-output.log
61
61
exit 1
62
62
fi
63
- tagFormat=$(jq -r .tagFormat .releaserc )
63
+ tagFormat=$(node -e "const config=require('./release.config.cjs'); console.log(config.tagFormat)" )
64
64
if [ "${tagFormat}" = "null" ]
65
65
then
66
66
tagFormat="v\${version}"
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: Release to GitHub Packages
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ schedule :
6
+ - cron : " 0 8 * * 3"
5
7
6
8
jobs :
7
9
quality_checks :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+
2
+ const { readFileSync} = require ( "fs" )
3
+
4
+ const commitTemplate = readFileSync ( "./releaseNotesTemplates/commit.hbs" ) . toString ( )
5
+
6
+ module . exports = {
7
+ branches : [
8
+ {
9
+ name : "main"
10
+ }
11
+ ] ,
12
+ plugins : [
13
+ [
14
+ "@semantic-release/commit-analyzer" ,
15
+ {
16
+ preset : "eslint" ,
17
+ releaseRules : [
18
+ {
19
+ reminder : "Please update CONTRIBUTING.md if you change this" ,
20
+ release : false
21
+ } ,
22
+ {
23
+ tag : "Fix" ,
24
+ release : "patch"
25
+ } ,
26
+ {
27
+ tag : "Update" ,
28
+ release : "patch"
29
+ } ,
30
+ {
31
+ tag : "New" ,
32
+ release : "minor"
33
+ } ,
34
+ {
35
+ tag : "Breaking" ,
36
+ release : "major"
37
+ } ,
38
+ {
39
+ tag : "Docs" ,
40
+ release : "patch"
41
+ } ,
42
+ {
43
+ tag : "Build" ,
44
+ release : false
45
+ } ,
46
+ {
47
+ tag : "Upgrade" ,
48
+ release : "patch"
49
+ } ,
50
+ {
51
+ tag : "Chore" ,
52
+ release : "patch"
53
+ }
54
+ ]
55
+ }
56
+ ] ,
57
+ [
58
+ "@semantic-release/release-notes-generator" ,
59
+ {
60
+ preset : "eslint" ,
61
+ writerOpts : {
62
+ commitPartial : commitTemplate
63
+ }
64
+ }
65
+ ] ,
66
+ [
67
+ "@semantic-release/changelog" ,
68
+ {
69
+ changelogFile : "CHANGELOG.md"
70
+ }
71
+ ] ,
72
+ [
73
+ "@semantic-release/github" ,
74
+ {
75
+ assets : [
76
+ {
77
+ path : "CHANGELOG.md" ,
78
+ label : "CHANGELOG.md"
79
+ }
80
+ ] ,
81
+ successComment : false ,
82
+ failComment : false ,
83
+ failTitle : false
84
+ }
85
+ ]
86
+ ]
87
+ }
Original file line number Diff line number Diff line change
1
+ * {{ #if message }} {{ message }} {{ else }} {{ header }} {{ /if }}
2
+
3
+ {{~ !-- commit hash --}} {{ #if @root.linkReferences }} ([{{ shortHash }} ]({{ #if @root.host }} {{ @root.host }} /{{ /if }} {{ #if @root.owner }} {{ @root.owner }} /{{ /if }} {{ @root.repository }} /{{ @root.commit }} /{{ hash }} )){{ else }} {{ hash ~}} {{ /if }}
Original file line number Diff line number Diff line change @@ -5,5 +5,6 @@ sonar.host.url=https://sonarcloud.io
5
5
sonar.coverage.exclusions =\
6
6
**/*.test.*, \
7
7
**/jest.config.ts,scripts/*, \
8
- eslint.config.mjs
8
+ eslint.config.mjs, \
9
+ release.config.cjs
9
10
sonar.javascript.lcov.reportPaths =coverage/lcov.info
You can’t perform that action at this time.
0 commit comments