Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,24 @@ jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
# コードをチェックアウト
- uses: actions/checkout@v4
- run: vite build #tsc -b 抜き

# Bun のインストール
- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo 'export PATH="$HOME/.bun/bin:$PATH"' >> $GITHUB_ENV

# 依存関係のインストール
- name: Install dependencies
run: bun install

# Vite でビルド
- name: Build Vite
run: bun run build

# Firebase Hosting にデプロイ
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down
21 changes: 17 additions & 4 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
on: pull_request
permissions:
Expand All @@ -12,8 +9,24 @@ jobs:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
# コードをチェックアウト
- uses: actions/checkout@v4
- run: tsc -b && vite build

# Bun のインストール
- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo 'export PATH="$HOME/.bun/bin:$PATH"' >> $GITHUB_ENV

# 依存関係のインストール
- name: Install dependencies
run: bun install

# TypeScript と Vite のビルド
- name: Build TypeScript and Vite
run: bun run tsc && bun run build

# Firebase Hosting にプレビュー用デプロイ
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading