Skip to content

chore(ci): ci_writerside_docs.yml #52

chore(ci): ci_writerside_docs.yml

chore(ci): ci_writerside_docs.yml #52

Workflow file for this run

name: CI/CD Workflow
permissions:
pull-requests: write
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