From 66ed47d3d0998c489f50f64bf2c513717afbc894 Mon Sep 17 00:00:00 2001 From: joeyklee Date: Thu, 20 Jan 2022 15:08:54 -0800 Subject: [PATCH 1/7] feat: wip - release drafter yaml --- .github/release-drafter.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 000000000..ed08579ad --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,31 @@ +name: Release Drafter + +template: | + ## What’s Changed + + $CHANGES + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - main + # pull_request event is required only for autolabeler + pull_request: + # Only following types are handled by the action, but one can default to all as well + types: [opened, reopened, synchronize] + # pull_request_target event is required for autolabeler to support PRs from forks + # pull_request_target: + # types: [opened, reopened, synchronize] + +version-resolver: + major: + labels: + - "SEMVER/major" + minor: + labels: + - "SEMVER/minor" + patch: + labels: + - "SEMVER/patch" + default: patch From 2fcdff8f19fa99a00bf2e7fb5769c06d498cf7ad Mon Sep 17 00:00:00 2001 From: joeyklee Date: Thu, 20 Jan 2022 15:19:37 -0800 Subject: [PATCH 2/7] refactor: updates yaml --- .github/release-drafter.yml | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index ed08579ad..a050e7e73 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,23 +1,5 @@ -name: Release Drafter - -template: | - ## What’s Changed - - $CHANGES - -on: - push: - # branches to consider in the event; optional, defaults to all - branches: - - main - # pull_request event is required only for autolabeler - pull_request: - # Only following types are handled by the action, but one can default to all as well - types: [opened, reopened, synchronize] - # pull_request_target event is required for autolabeler to support PRs from forks - # pull_request_target: - # types: [opened, reopened, synchronize] - +name-template: v$RESOLVED_VERSION +tag-template: v$RESOLVED_VERSION version-resolver: major: labels: @@ -29,3 +11,13 @@ version-resolver: labels: - "SEMVER/patch" default: patch +categories: + - title: Bug Fixes + labels: + - bug + - fix + - bugfix +template: | + ## Changes + + $CHANGES From 26ee108e2e203ab071eacd1e2ff8c664cacc4671 Mon Sep 17 00:00:00 2001 From: joeyklee Date: Thu, 20 Jan 2022 15:46:32 -0800 Subject: [PATCH 3/7] feat: adds publish.yml to automate publish --- .github/workflows/publish.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..06602518c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,20 @@ +name: Node.js CI + +release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: "v12.16.1" + - run: npm ci + - run: npm run build --if-present + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 9d5d9ff38d5d8089f43040246a02d87571124f9d Mon Sep 17 00:00:00 2001 From: joeyklee Date: Thu, 20 Jan 2022 15:55:17 -0800 Subject: [PATCH 4/7] refactor: updates publish.yml --- .github/workflows/publish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 06602518c..88139b6e6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,6 @@ release: jobs: build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - name: Use Node.js From 717cfa308dbd4f835120a03f300490714867ac74 Mon Sep 17 00:00:00 2001 From: joeyklee Date: Thu, 20 Jan 2022 16:11:08 -0800 Subject: [PATCH 5/7] refactor: adds on prop and cleanup --- .github/workflows/main.yml | 0 .github/workflows/publish.yml | 9 ++++----- 2 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index e69de29bb..000000000 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 88139b6e6..439efdb41 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,7 @@ -name: Node.js CI - -release: - types: [created] - +name: Publishing to NPM +on: + release: + types: [created] jobs: build: runs-on: ubuntu-latest From 1e4343cf99b6ea8a2f09f413a1c104f16bc30165 Mon Sep 17 00:00:00 2001 From: joeyklee Date: Thu, 20 Jan 2022 16:18:02 -0800 Subject: [PATCH 6/7] chore: kick travis --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 463fd69f6..0e0546398 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,6 @@ [![Twitter Follow](https://img.shields.io/twitter/follow/espadrine.svg?style=social&label=Follow)](https://twitter.com/ml5js) - **_This project is currently in development._** ## Friendly machine learning for the web! From edce09607728d518377be7d35f30c7b285dd9777 Mon Sep 17 00:00:00 2001 From: joeyklee Date: Thu, 20 Jan 2022 16:19:47 -0800 Subject: [PATCH 7/7] chore: empty commit