chore: migrate all Actions workflows to the maintenance/v1.x
branch
#228
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 (v1.x) | |
on: | |
pull_request: | |
branches: | |
- maintenance/v1.x | |
jobs: | |
web3-commit-lint: | |
name: Validate commit message | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# Need to fetch the base SHA so that it can be compared with the head SHA. | |
fetch-depth: 0 | |
- name: Install package manager | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9.1.0 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Check that commit message conforms to Semantic Release format | |
if: ${{ github.event_name == 'pull_request' }} | |
run: bash commitlint.sh | |
env: | |
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} |