ci: publish checkout #22
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: | |
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 |