Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/shared-github-workflows' into sh…
Browse files Browse the repository at this point in the history
…ared-github-workflows
  • Loading branch information
csantiago132 committed Sep 30, 2024
2 parents 554cdc3 + 6b6b4c1 commit 292a0f1
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI/CD Workflow

on:
pull_request:
push:
branches:
- main

jobs:
setup:
uses: ./_base.yml@v1
with:
node_version: '18'

commitlint:
needs: setup
uses: ./commitlint.yml@v1
with:
edit: '.git/COMMIT_EDITMSG'

eslint:
needs: setup
uses: ./eslint-check.yml@v1
with:
maxWarnings: '0'

prettier:
needs: setup
uses: ./prettier-check.yml@v1

generate-writerside-docs:
needs: setup
if: github.ref == 'refs/heads/main'
uses: ./generate_writerside_docs.yml@v1
with:
npm_token: ${{ secrets.NPM_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

semantic-release:
needs: setup
if: github.ref == 'refs/heads/main'
uses: ./semantic-release.yml@v1
with:
node_version: '18'
npm_token: ${{ secrets.NPM_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 292a0f1

Please sign in to comment.