Skip to content

Commit

Permalink
added install deps workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlwn123 committed Sep 4, 2024
1 parent c7f0e5c commit 5ada005
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
22 changes: 22 additions & 0 deletions .github/actions/install-deps/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Install Dependencies
on:
workflow_call:
workflow_dispatch:

runs:
using: 'composite'
install:
name: Install dependencies
runs-on: ubuntu-latest
steps:
- name: Set up pnpm
uses: pnpm/action-setup@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
14 changes: 5 additions & 9 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,15 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Clone repository
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
uses: ./.github/actions/install-deps

- name: Build
run: pnpm build:pages

- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
Expand Down

0 comments on commit 5ada005

Please sign in to comment.