Skip to content

Commit e180f11

Browse files
committed
Fix CI/CD workflow and deploy step
1 parent 11c77b4 commit e180f11

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/reactcicd.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [main]
88

99
permissions:
10-
contents: write
10+
contents: write
1111

1212
jobs:
1313
build-and-deploy:
@@ -23,24 +23,22 @@ jobs:
2323
node-version: 18
2424

2525
- name: Install dependencies
26-
run: npm ci
26+
run: npm install
2727

2828
- name: Run tests
2929
run: npm test --if-present
3030

3131
- name: Build the project
3232
run: npm run build
3333

34-
# Configure Git identity
3534
- name: Configure Git
3635
run: |
3736
git config --global user.name "karthiknvd"
3837
git config --global user.email "nvdkarthik2005@gmail.com"
3938
40-
# Deploy to GitHub Pages
4139
- name: Deploy to GitHub Pages
4240
env:
4341
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4442
run: |
4543
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
46-
npm run deploy
44+
npm run deploy

0 commit comments

Comments
 (0)