feat(ci): adds more CI validations, introduces semantic release (#74) #3
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: Commit Lint | ||
on: | ||
- pull_request | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
env: | ||
HUSKY: 0 | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
ref: main | ||
- name: Setup Node.js | ||
if: steps.changes.outputs.ts == 'true' | ||
uses: actions/setup-node@v4 | ||
with: | ||
Check failure on line 24 in .github/workflows/commit-lint.yml
|
||
node-version: 18.0.0 | ||
cache: npm | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Lint commit messages | ||
id: commitlint | ||
uses: wagoid/commitlint-github-action@v6 | ||
with: | ||
failOnErrors: 'false' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create comment | ||
if: commitlint.outputs.results > 0 | ||
uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
body: | | ||
commitlint.outputs.results |