Skip to content

Commit

Permalink
[Fix] specify cache dependency path
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed Feb 24, 2024
1 parent 182c160 commit 973b5ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ jobs:
pack:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup nodejs
uses: actions/setup-node@v4
working-directory: snap-client
with:
node-version: 20
cache: npm
cache-dependency-path: ./snap-client/package-lock.json

- name: Install deps
working-directory: snap-client
Expand All @@ -24,4 +27,7 @@ jobs:
- name: Move into public folder
run: cp -r snap-client/build snap-server/public


- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: "[Update] build newest client package"
2 changes: 1 addition & 1 deletion snap-client/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function App() {

useEffect(() => {
document.title = config?.preview_title ?? PREVIEW_TITLE_PLACEHOLDER;
}, []);
}, [config?.preview_title]);

return (
<div className="w-full h-full flex flex-col items-center bg-deep-gray">
Expand Down

0 comments on commit 973b5ea

Please sign in to comment.