-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (46 loc) · 1.29 KB
/
ci-cd-pipeline.yml
File metadata and controls
49 lines (46 loc) · 1.29 KB
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
49
name: CI/CD Status
run-name: Full CI/CD Pipeline
permissions:
contents: read
actions: read
on:
push:
# Triggers on pushes to main/development branches.
branches: ["main", "development"]
paths-ignore:
- "*.md"
- "assets/**"
- "docs/**"
- "scripts/**"
- ".github/**/*.md"
- ".github/FUNDING.yml"
- ".eslintrc"
- ".gitignore"
- "__tests__/**"
pull_request:
# Triggers on pull requests to main/development branches.
branches: ["main", "development"]
paths-ignore:
- "*.md"
- "assets/**"
- "docs/**"
- "scripts/**"
- ".github/**/*.md"
- ".github/FUNDING.yml"
- ".eslintrc"
- ".gitignore"
- "__tests__/**"
workflow_dispatch:
# Allows manual triggering of the workflow.
jobs:
trigger-full-ci:
# Triggers the full CI/CD pipeline.
name: CI
uses: ./.github/workflows/lint-and-test.yml
secrets: inherit
with:
target_env: >-
${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && 'production'
|| (github.ref == 'refs/heads/development' || github.base_ref == 'development') && 'development' }}
node-version: "22.4.1"
skip_deploy: ${{ github.event_name == 'pull_request' }} # skip deployment if it's a pull request