-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (42 loc) · 1.17 KB
/
ci-cd-pipeline.yml
File metadata and controls
45 lines (42 loc) · 1.17 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
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"
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"
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' && 'production' || github.ref == 'refs/heads/development' && 'development' || 'invalid' }}
node-version: "22.4.1"
skip_deploy: ${{ github.event_name == 'pull_request' }} # skip deployment if it's a pull request