From a00108bc0a9c6039f44c6655af481e8621c0d906 Mon Sep 17 00:00:00 2001 From: Okinea Dev Date: Wed, 9 Jul 2025 15:30:15 +0200 Subject: [PATCH] ci: build and format code only before release --- .github/workflows/format-and-build.yml | 42 -------------------------- .github/workflows/release.yml | 5 +++ 2 files changed, 5 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/format-and-build.yml diff --git a/.github/workflows/format-and-build.yml b/.github/workflows/format-and-build.yml deleted file mode 100644 index ea5db93..0000000 --- a/.github/workflows/format-and-build.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6647da..5f7e748 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,11 @@ jobs: - name: 📦 Install Dependencies run: npm install + - name: 🔄 Format and build + run: | + npm run format + npm run build + - name: 📜 Generate changelog and release new version run: | npx changelogen --release --push