-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (51 loc) · 1.38 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI/CD Workflow
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: false
on:
pull_request:
push:
branches:
- main
jobs:
pipeline:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies with pnpm
run: pnpm install
- name: Run Commitlint
run: git log -1 --pretty=%B | pnpm exec commitlint
- name: Run ESLint
run: pnpm eslint . --max-warnings=0 # Use pnpm
- name: Run Prettier
run: pnpm prettier --check . # Use pnpm
- name: Run Semantic Release
if: github.ref == 'refs/heads/main'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release
generate-writerside-docs:
needs: pipeline
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/generate_writerside_docs.yml
secrets: inherit
with:
writerside_instance: 'Writerside/dcs'
artifact_name: 'webHelpDCS2-all.zip'
docker_version: 242.21870