Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 0 additions & 58 deletions .github/copilot-instructions.md

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI/CD Pipeline
permissions:
contents: read
pages: write
id-token: write

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- run: npm ci
- run: npm run lint
- run: npm run format:check
- run: npm test
- run: npm run build

- run: |
mkdir -p logs
echo "Build at $(date)" > logs/build.log

- uses: actions/upload-artifact@v4
with:
name: build-logs
path: logs/

- uses: actions/upload-artifact@v4
with:
name: github-pages # <- CHANGED
path: demo/ # <- points to your demo folder

cd:
needs: ci
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

steps:
- uses: actions/deploy-pages@v4
7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Create a `.github/workflows/ci-cd.yml` file that:
1. Go to your repository **Settings**
2. Navigate to **Pages** (in the left sidebar)
3. Under **Source**, select **GitHub Actions**
4. Push your workflow file to trigger the first deployment
4. Push your workflow file to trigger the first deployment.

### 6. Test Your Pipeline

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
"format:check": "prettier --check ."
"format:check": "prettier --check \"src/**/*.{js,ts,jsx,tsx,json,css,html,md}\""

},
"devDependencies": {
"eslint": "^9.39.2",
Expand Down