Implemented the chart in the "Users" Section #42
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build PRs submitted to the master branch. | |
name: 👷 PR Builder | |
on: | |
pull_request: | |
types: [ opened, synchronize, labeled ] | |
branches: [ main ] | |
paths-ignore: | |
- "**.md" | |
- "LICENSE" | |
workflow_dispatch: | |
# Avoid running multiple builds for the same PR. | |
concurrency: | |
group: pr-builder-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
lint: | |
name: ⬣ ESLint (STATIC ANALYSIS) | |
if: ${{ github.event_name == 'pull_request' || github.event.label.name == 'trigger-pr-builder' }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ lts/* ] | |
steps: | |
- name: ⬇️ Checkout | |
id: checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: 🟢 Setup node | |
id: setup-node | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: 🧩 Install Dependencies | |
run: npm ci # Recommended for CI environments | |
- name: 🦄 Lint Changed Files | |
working-directory: .github/workflows | |
run: | | |
bash ./scripts/lint-changes.sh ${{ github.event.pull_request.number }} | |
build: | |
name: 🚧 Build | |
needs: [ lint ] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ lts/* ] | |
steps: | |
- name: ⬇️ Checkout | |
id: checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: 🟢 Setup node | |
id: setup-node | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: 🧩 Install Dependencies | |
run: | | |
rm -rf node_modules | |
rm -rf package-lock.json | |
npm cache clean --force | |
npm install | |
- name: 👷 Build | |
run: npm run build # Assumes you have a build script in package.json |