mirror of
https://github.com/mistricky/codesnap.nvim.git
synced 2024-12-27 03:46:29 +00:00
[Feat] fix pack CI (#23)
* [Feat] fix pack CI * [Fix] specify cache dependency path
This commit is contained in:
parent
c8a66c60df
commit
45081e2fd7
2 changed files with 9 additions and 3 deletions
10
.github/workflows/pack.yaml
vendored
10
.github/workflows/pack.yaml
vendored
|
@ -9,12 +9,15 @@ jobs:
|
||||||
pack:
|
pack:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup nodejs
|
- name: Setup nodejs
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
working-directory: snap-client
|
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: npm
|
cache: npm
|
||||||
|
cache-dependency-path: ./snap-client/package-lock.json
|
||||||
|
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
working-directory: snap-client
|
working-directory: snap-client
|
||||||
|
@ -27,4 +30,7 @@ jobs:
|
||||||
- name: Move into public folder
|
- name: Move into public folder
|
||||||
run: cp -r snap-client/build snap-server/public
|
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"
|
||||||
|
|
|
@ -67,7 +67,7 @@ function App() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.title = config?.preview_title ?? PREVIEW_TITLE_PLACEHOLDER;
|
document.title = config?.preview_title ?? PREVIEW_TITLE_PLACEHOLDER;
|
||||||
}, []);
|
}, [config?.preview_title]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full h-full flex flex-col items-center bg-deep-gray">
|
<div className="w-full h-full flex flex-col items-center bg-deep-gray">
|
||||||
|
|
Loading…
Reference in a new issue