docs: correct typos in README.md #33
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: "Push" | |
# The workflow will run each time a new commit is pushed | |
on: | |
push | |
jobs: | |
commit-lint: | |
runs-on: "ubuntu-latest" | |
# We will not run this action on the first commit of the repository | |
if: ${{ github.event.before != '0000000000000000000000000000000000000000' }} | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@v3" | |
- name: "Install Node.js" | |
uses: "actions/setup-node@v3" | |
with: | |
node-version: "lts/*" | |
- name: "Install and setup commitlint" | |
run: | | |
npm install --save-dev @commitlint/config-conventional @commitlint/cli | |
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js | |
- name: "Lint the latest commit message" | |
run: echo "${{ github.event.head_commit.message }}" | npx --no commitlint |