Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
okineadev committed Feb 5, 2025
1 parent 6424321 commit a958169
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/format-and-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: 🔄 Format & Build

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

permissions:
contents: read

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
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ jobs:
- name: 📦 Install Dependencies
run: npm install

- name: 🚀 Prepare release
run: bun run preversion

- name: 📜 Generate changelog and release new version
run: |
npx changelogen --release --push
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"scripts": {
"format": "prettier --write src *.yml *.json *.md",
"build": "esbuild --target=node20 --outfile=dist/setup/index.js --bundle --minify --platform=node --format=cjs src/index.ts && esbuild --target=node20 --outfile=dist/cache-save/index.js --bundle --minify --platform=node --format=cjs src/cache-save.ts",
"preversion": "npm run format && npm run build && git add .",
"start": "npm run build && node dist/setup/index.js"
},
"dependencies": {
Expand Down

0 comments on commit a958169

Please sign in to comment.