Skip to content

Commit

Permalink
Updated publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarmaged committed Jun 7, 2024
1 parent 20bd22c commit b0c7035
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish Vue Project
name: Build and Publish

on:
push:
Expand All @@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main # Ensure we are checking out the main branch
- uses: actions/setup-node@v3
with:
node-version: 20
Expand All @@ -36,10 +38,11 @@ jobs:

- name: Commit and push updated files
run: |
git checkout main # Ensure we are on the main branch
git pull origin main # Pull the latest changes
git add .
git commit -m "chore(release): update version to ${GITHUB_REF#refs/tags/v}"
git show --stat
git push origin HEAD:${{ github.ref }} --force
git push origin main --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit b0c7035

Please sign in to comment.