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