-
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.08 KB
/
cicd.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
44
45
46
47
48
name: CICD Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
build-and-test:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20]
pnpm-version: [8]
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
node-version: ${{ matrix.node-version }}
- name: Setup pnpm and Cache
uses: ./.github/actions/setup-pnpm
with:
pnpm-version: ${{ matrix.pnpm-version }}
- name: Install Playwright and Dependencies
uses: ./.github/actions/install-deps
- name: Run NX Affected Commands
uses: ./.github/actions/run-affected
- name: Publish Packages
if: github.event_name == 'push'
uses: ./.github/actions/publish
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}