ci: build and format code only before release

This commit is contained in:
Okinea Dev 2025-07-09 15:30:15 +02:00
parent f75205b850
commit a00108bc0a
No known key found for this signature in database
GPG key ID: BAC81899535644D5
2 changed files with 5 additions and 42 deletions

View file

@ -1,42 +0,0 @@
name: 🔄 Format & Build
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: write
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🛠️ Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: 🔧 Configure Git
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: 📦 Install Dependencies
run: npm install
- name: 🔄 Format and build
run: |
npm run format
npm run build
- name: 💾 Commit changes
run: |
git add .
git commit -m "chore: format and build"
git push

View file

@ -29,6 +29,11 @@ jobs:
- name: 📦 Install Dependencies - name: 📦 Install Dependencies
run: npm install run: npm install
- name: 🔄 Format and build
run: |
npm run format
npm run build
- name: 📜 Generate changelog and release new version - name: 📜 Generate changelog and release new version
run: | run: |
npx changelogen --release --push npx changelogen --release --push