Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Prathm0025 authored Oct 17, 2024
1 parent 37471c5 commit ae9091f
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@ jobs:
- name: Build
run: npm run build

- name: Update package.json in Main
env:
GITHUB_TOKEN: ${{ secrets.G_TOKEN }}
run: |
git config --global user.name "Prathm"
git config --global user.email "prathm@123.com"
git checkout main
cp package.json ../package.json
git add ../package.json
git commit -m "update package.json"
git push --set-upstream origin main
- name: Push updated package.json to main branch
env:
GITHUB_TOKEN: ${{ secrets.G_TOKEN }}
run: |
git fetch origin main:main # Fetch the main branch
git checkout main
cp package.json ../package.json
git add ../package.json
git commit -m "update package.json"
git push origin main
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit ae9091f

Please sign in to comment.