Skip to content

Merge pull request #33 from WebDevStudios/feature/Versioning-script #1

Merge pull request #33 from WebDevStudios/feature/Versioning-script

Merge pull request #33 from WebDevStudios/feature/Versioning-script #1

name: Update Version on Merge to Main
on:
push:
branches:
- main
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run version update script
run: node updateVersion.js
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .env style.css package.json composer.json
git commit -m "Automated version update after merge to main"
git push origin main