Skip to content

ci: prepare first release #15

ci: prepare first release

ci: prepare first release #15

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
actions: read
contents: read
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version-file: package.json
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- uses: nrwl/nx-set-shas@v4
- run: pnpm i
- if: github.event_name == 'push'
run: pnpm exec nx run tools-commitlint:exec:last
- if: github.event_name == 'pull_request'
run: nx run tools-commitlint:exec:last --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }}
- run: pnpm exec nx affected -t lint test build