mirror of
https://github.com/Lapikud/tipilan.git
synced 2026-03-23 21:34:21 +00:00
Update workflow during build
This commit is contained in:
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@@ -10,25 +10,19 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Check if Bun is installed
|
|
||||||
id: check-bun
|
|
||||||
run: |
|
|
||||||
if command -v bun &> /dev/null; then
|
|
||||||
echo "bun-exists=true" >> $GITHUB_OUTPUT
|
|
||||||
echo "Bun is already installed: $(bun --version)"
|
|
||||||
else
|
|
||||||
echo "bun-exists=false" >> $GITHUB_OUTPUT
|
|
||||||
echo "Bun is not installed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
if: steps.check-bun.outputs.bun-exists == 'false'
|
uses: oven-sh/setup-bun@v2
|
||||||
uses: oven-sh/setup-bun@v1
|
|
||||||
with:
|
with:
|
||||||
bun-version: latest
|
bun-version: latest
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install
|
||||||
|
|
||||||
|
- name: Generate Drizzle schema
|
||||||
|
run: bun drizzle-kit generate
|
||||||
|
|
||||||
|
- name: Run Drizzle migrations
|
||||||
|
run: bun drizzle-kit migrate
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: bun --bun run build
|
run: bun --bun run build
|
||||||
|
|||||||
Reference in New Issue
Block a user