Skip to content

Commit 9c2c74f

Browse files
authored
Merge pull request #1266 from ml5js/joeykee.1265-release-drafter
feat: #1265 Integrate release drafter for automating releases
2 parents f560a2f + edce096 commit 9c2c74f

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed

.github/release-drafter.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name-template: v$RESOLVED_VERSION
2+
tag-template: v$RESOLVED_VERSION
3+
version-resolver:
4+
major:
5+
labels:
6+
- "SEMVER/major"
7+
minor:
8+
labels:
9+
- "SEMVER/minor"
10+
patch:
11+
labels:
12+
- "SEMVER/patch"
13+
default: patch
14+
categories:
15+
- title: Bug Fixes
16+
labels:
17+
- bug
18+
- fix
19+
- bugfix
20+
template: |
21+
## Changes
22+
23+
$CHANGES

.github/workflows/main.yml

Whitespace-only changes.

.github/workflows/publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publishing to NPM
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Use Node.js
11+
uses: actions/setup-node@v2
12+
with:
13+
node-version: "v12.16.1"
14+
- run: npm ci
15+
- run: npm run build --if-present
16+
- run: npm publish
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[![Twitter Follow](https://img.shields.io/twitter/follow/espadrine.svg?style=social&label=Follow)](https://twitter.com/ml5js)
66

77

8-
98
**_This project is currently in development._**
109

1110
## Friendly machine learning for the web!

0 commit comments

Comments
 (0)