Skip to content

Commit

Permalink
Refactor: Update dependency installation in deploy and lint workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kota8102 committed Nov 12, 2024
1 parent e5b16aa commit d023348
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
with:
node-version: "20"

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

# npmキャッシュの設定
- name: Cache npm dependencies
uses: actions/cache@v4
Expand All @@ -41,10 +45,6 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
# 依存関係のインストール
- name: Install dependencies
run: npm ci

setup-python:
runs-on: ubuntu-latest
timeout-minutes: 20
Expand All @@ -58,6 +58,10 @@ jobs:
with:
python-version: "3.12"

# 依存関係のインストール
- name: Install dependencies
run: pip install -r requirements.txt

# Pythonの依存関係キャッシュ
- name: Cache pip dependencies
uses: actions/cache@v4
Expand All @@ -68,10 +72,6 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
# 依存関係のインストール
- name: Install dependencies
run: pip install -r requirements.txt

# 環境変数を設定
set-environment:
needs:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ jobs:
with:
node-version: "20"

# Biomeのインストール
- name: Install Biome
run: npm install -g @biomejs/biome

# npmキャッシュの復元
- name: Restore npm dependencies
uses: actions/cache@v4
Expand Down

0 comments on commit d023348

Please sign in to comment.