feat!: plat-6785 upgrade cdk 1.x -> 2.x #368
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: commitlint for PR title | |
on: | |
pull_request: | |
types: ["opened", "edited", "reopened", "synchronize"] | |
jobs: | |
commitlint-pr-title: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
cache: "npm" | |
- run: git config --global url."https://".insteadOf git:// | |
- run: npm ci --ignore-scripts | |
- name: Apply commitlint to the PR title | |
run: echo "${{ github.event.pull_request.title }}" | npx --no-install commitlint |