Skip to content

Commit

Permalink
Merge pull request #1 from high1/main
Browse files Browse the repository at this point in the history
Fixed frontend deployment cache
  • Loading branch information
trisDeveloper committed Feb 21, 2024
2 parents ec2a209 + b9155a0 commit cf9f095
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
CURRENT_DIR: frontend

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
Expand All @@ -27,16 +30,18 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./${{ env.CURRENT_DIR }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: go to frontend
run: cd frontend
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
cache-dependency-path: ${{ env.CURRENT_DIR }}/package-lock.json
- name: Install dependencies
run: npm install
- name: Build
Expand Down

0 comments on commit cf9f095

Please sign in to comment.