✨ feat: Phantom support #915
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: 🦄 PR | |
on: | |
pull_request: | |
types: [ opened, edited, synchronize, reopened ] | |
jobs: | |
commitlint: | |
name: Validate title | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4.2.2 | |
- name: Setup Node & Install dependencies | |
uses: ./.github/actions/setup | |
# The validation is done based on the `commitlint.config.js` file. | |
- name: Validate PR title | |
env: | |
# Sanitizes PR title as documented here: | |
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable | |
PR_TITLE: "${{ github.event.pull_request.title }}" | |
run: | | |
echo "$PR_TITLE" | pnpm -s dlx commitlint |