Skip to content

chore: fix the license link in readme #209

chore: fix the license link in readme

chore: fix the license link in readme #209

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions: { }
jobs:
commit-lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Setup node env 🏗
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies 👨🏻‍💻
run: pnpm install --frozen-lockfile
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: pnpm exec commitlint --from HEAD~1 --to HEAD --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: pnpm exec commitlint --from "${BASE_SHA}" --to "${HEAD_SHA}" --verbose
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
ci:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Setup node env 🏗
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies 👨🏻‍💻
run: pnpm install --frozen-lockfile
- name: Build 🏗️
run: pnpm run build
- name: Run linter 👀
run: pnpm run lint