Skip to content

Commit 748b6a9

Browse files
authored
chore: add semantic release config (#167)
So we get changelogs again
1 parent 2282249 commit 748b6a9

File tree

2 files changed

+84
-23
lines changed

2 files changed

+84
-23
lines changed

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)
44
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
55
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
6-
[![Travis CI](https://flat.badgen.net/travis/ipfs/js-ipfs-utils)](https://travis-ci.com/ipfs/js-ipfs-utils)
6+
[![Build Status](https://github.com/ipfs/js-ipfs-utils/actions/workflows/js-test-and-release.yml/badge.svg?branch=main)](https://github.com/ipfs/js-ipfs-utils/actions/workflows/js-test-and-release.yml)
77
[![Codecov branch](https://img.shields.io/codecov/c/github/ipfs/js-ipfs-utils/master.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs-utils)
88
[![Dependency Status](https://david-dm.org/ipfs/js-ipfs-utils.svg?style=flat-square)](https://david-dm.org/ipfs/js-ipfs-utils)
99
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
@@ -23,10 +23,6 @@ The IPFS ecosystem has lots of repos with it comes several problems like:
2323

2424
These problems are the motivation for this package, having shared logic in this package avoids creating cyclic dependencies, centralizes common use modules/functions (exactly like aegir does for the tooling), semantic versioning for 3rd party dependencies is handled in one single place (a good example is going from streams 2 to 3) and maintainers should only care about having `ipfs-utils` updated.
2525

26-
## Lead Maintainer <!-- omit in toc -->
27-
28-
[Hugo Dias](https://github.com/hugomrdias)
29-
3026
## Table of Contents <!-- omit in toc -->
3127

3228
- [Install](#install)

package.json

+83-18
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "Hugo Dias <[email protected]>",
77
"homepage": "https://github.com/ipfs/js-ipfs-utils",
88
"bugs": "https://github.com/ipfs/js-ipfs-utils/issues",
9-
"leadMaintainer": "Hugo Dias <[email protected]>",
9+
"repository": "github:ipfs/js-ipfs-utils",
1010
"files": [
1111
"src",
1212
"dist"
@@ -32,7 +32,87 @@
3232
]
3333
}
3434
},
35-
"repository": "github:ipfs/js-ipfs-utils",
35+
"release": {
36+
"branches": [
37+
"main"
38+
],
39+
"plugins": [
40+
[
41+
"@semantic-release/commit-analyzer",
42+
{
43+
"preset": "conventionalcommits",
44+
"releaseRules": [
45+
{
46+
"breaking": true,
47+
"release": "major"
48+
},
49+
{
50+
"revert": true,
51+
"release": "patch"
52+
},
53+
{
54+
"type": "feat",
55+
"release": "minor"
56+
},
57+
{
58+
"type": "fix",
59+
"release": "patch"
60+
},
61+
{
62+
"type": "chore",
63+
"release": "patch"
64+
},
65+
{
66+
"type": "docs",
67+
"release": "patch"
68+
},
69+
{
70+
"type": "test",
71+
"release": "patch"
72+
},
73+
{
74+
"scope": "no-release",
75+
"release": false
76+
}
77+
]
78+
}
79+
],
80+
[
81+
"@semantic-release/release-notes-generator",
82+
{
83+
"preset": "conventionalcommits",
84+
"presetConfig": {
85+
"types": [
86+
{
87+
"type": "feat",
88+
"section": "Features"
89+
},
90+
{
91+
"type": "fix",
92+
"section": "Bug Fixes"
93+
},
94+
{
95+
"type": "chore",
96+
"section": "Trivial Changes"
97+
},
98+
{
99+
"type": "docs",
100+
"section": "Trivial Changes"
101+
},
102+
{
103+
"type": "test",
104+
"section": "Tests"
105+
}
106+
]
107+
}
108+
}
109+
],
110+
"@semantic-release/changelog",
111+
"@semantic-release/npm",
112+
"@semantic-release/github",
113+
"@semantic-release/git"
114+
]
115+
},
36116
"scripts": {
37117
"lint": "aegir lint",
38118
"dep-check": "aegir dep-check",
@@ -81,20 +161,5 @@
81161
"env": {
82162
"worker": true
83163
}
84-
},
85-
"contributors": [
86-
"achingbrain <[email protected]>",
87-
"Hugo Dias <[email protected]>",
88-
"Alan Shaw <[email protected]>",
89-
"Irakli Gozalishvili <[email protected]>",
90-
"Hector Sanjuan <[email protected]>",
91-
"André Costa Lima <[email protected]>",
92-
"Olivério Sousa <[email protected]>",
93-
"Roderik van der Veer <[email protected]>",
94-
"Stepan Yurtsiv <[email protected]>",
95-
"Vasco Santos <[email protected]>",
96-
97-
"bluelovers <[email protected]>",
98-
"Marcin Rataj <[email protected]>"
99-
]
164+
}
100165
}

0 commit comments

Comments
 (0)