Skip to content

Commit

Permalink
feat: adjust Menu active feature and speedup deploy by pnpm cache
Browse files Browse the repository at this point in the history
  • Loading branch information
s890081tonyhsu committed Jan 5, 2025
1 parent 0620940 commit 2e924f6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,23 @@ jobs:
- name: Checkout your repository using git
uses: actions/checkout@v4

- name: Use pnpm as package manager
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: lts/iron
cache: 'pnpm'

- name: Install dependencies
run: npm install
run: pnpm install

- name: Build the project
run: npm run build
run: pnpm run build

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Menu from './Menu.vue';
import '@assets/scss/layout.scss';
const currentPath = Astro.url.pathname;
const currentPath = Astro.url.pathname.replace('.html', '');
---

<!doctype html>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ref } from 'vue';
import { Menu as MenuIcon } from 'lucide-vue-next';
type Props = {
path: String;
path: string;
};
const { path } = defineProps<Props>();
Expand Down

0 comments on commit 2e924f6

Please sign in to comment.