Skip to content

Commit 907fc73

Browse files
committed
build: conventional github releases
1 parent 14efb8f commit 907fc73

File tree

3 files changed

+450
-1
lines changed

3 files changed

+450
-1
lines changed

build/github-releaser.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require('dotenv/config')
2+
const conventionalGithubReleaser = require('conventional-github-releaser');
3+
4+
conventionalGithubReleaser({
5+
type: 'oauth',
6+
url: 'https://api.github.com/',
7+
token: process.env.GITHUB_TOKEN
8+
}, {
9+
preset: 'angular'
10+
}, (e, release) => {
11+
if (e) {
12+
console.error(e)
13+
process.exit(1)
14+
}
15+
16+
console.log(release)
17+
process.exit(0)
18+
})

0 commit comments

Comments
 (0)