From e659e267908adb1f988010d51ad184574a6c731a Mon Sep 17 00:00:00 2001 From: Mary Marchini Date: Thu, 20 Aug 2020 09:59:34 -0700 Subject: [PATCH 1/2] chore(ci): conventionalcommit linter --- .github/workflows/commitlint.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/commitlint.yml diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 00000000..a5aba609 --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -0,0 +1,18 @@ +--- +name: Conventional Commit Linter +on: + push: + branches: + - master + pull_request: + +jobs: + commitlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 100 + - uses: wagoid/commitlint-github-action@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} From eba88a4ed14358e06e1b6e8b19452e5873ed46e0 Mon Sep 17 00:00:00 2001 From: Mary Marchini Date: Thu, 20 Aug 2020 10:10:51 -0700 Subject: [PATCH 2/2] chore(ci): use Actions to generate changelog `release-please` will bump the package version and generate changelogs based on conventionalcommit. It does so by opening a PR every time a commit lands, and it updates that PR for each subsequent commit. Publishing to npm is still done manually. Ref: https://github.com/nodejs/node-core-utils/issues/446 --- .github/workflows/release-please.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 00000000..7973875d --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,15 @@ +on: + push: + branches: + - master + +name: release-please +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: GoogleCloudPlatform/release-please-action@v1.6.3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + release-type: node + package-name: node-core-utils