-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (32 loc) · 1012 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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