Skip to content

ci: publish remove set up nx affected #23

ci: publish remove set up nx affected

ci: publish remove set up nx affected #23

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
jobs:
main:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- uses: nrwl/nx-set-shas@v4
- run: pnpm i
- run: pnpm exec nx report
- 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
- if: github.event_name == 'push'
run: pnpm exec nx release --skip-publish