diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8d3641..de1f5b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,5 +23,10 @@ jobs: node-version: 12 cache: npm - run: npm ci + - run: | + npm run commitlint -- \ + --verbose \ + --from `git merge-base origin/master $GITHUB_SHA` + - run: npm run build - run: npm run test - run: npm run release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d2f1b6a..df0fe1d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,11 @@ jobs: node-version: ${{ matrix.node }} cache: npm - run: npm ci + - run: | + npm run commitlint -- \ + --verbose \ + --from `git merge-base origin/master $GITHUB_SHA` + - run: npm run build - run: npm run test windows: name: "Node ${{ matrix.node }} on Windows: Test and Lint" @@ -47,4 +52,5 @@ jobs: node-version: ${{ matrix.node }} cache: npm - run: npm ci + - run: npm run build - run: npm run test