-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.39 KB
/
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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
main:
runs-on: ubuntu-latest
env:
TURSO_CONNECTION_URL: ${{ secrets.turso_connection_url }}
TURSO_AUTH_TOKEN: ${{ secrets.turso_auth_token }}
AISWEB_API_KEY: ${{ secrets.aisweb_api_key }}
AISWEB_API_PASSWORD: ${{ secrets.aisweb_api_password }}
NXCACHE_AWS_ACCESS_KEY_ID: ${{secrets.nxcache_aws_access_key_id}}
NXCACHE_AWS_SECRET_ACCESS_KEY: ${{secrets.nxcache_aws_secret_access_key}}
NXCACHE_AWS_ENDPOINT: ${{secrets.nxcache_aws_endpoint}}
NXCACHE_AWS_REGION: ${{secrets.nxcache_aws_region}}
NXCACHE_AWS_BUCKET: ${{secrets.nxcache_aws_bucket}}
NXCACHE_AWS_FORCE_PATH_STYLE: ${{secrets.nxcache_aws_force_path_style}}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/[email protected]
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- uses: nrwl/nx-set-shas@v4
with:
main-branch-name: 'main'
- run: pnpm install
- run: pnpm biome check
- run: pnpm sherif
- run: npx nx affected --target=pack --parallel=3
- run: npx nx affected --target=test --parallel=3
- run: npx nx affected --target=lint --parallel=3
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}