feat: build for develop #52
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: ci | |
on: | |
merge_group: | |
types: [checks_requested] | |
push: | |
branches: | |
- main | |
- bugfixes | |
- develop | |
pull_request: | |
branches: | |
- main | |
- bugfixes | |
- develop | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
commit-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup node env π | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version-file: .nvmrc | |
- 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 ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup node env π | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version-file: .nvmrc | |
- name: Install dependencies π¨π»βπ» | |
run: pnpm install --frozen-lockfile | |
- name: Run linter π | |
run: pnpm run lint | |
- name: Build | |
run: pnpm run build |