Skip to content

Commit

Permalink
chore: format code and add packageManager in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-xzq committed Aug 22, 2024
1 parent 4a1c013 commit 1e7a974
Show file tree
Hide file tree
Showing 4 changed files with 3,224 additions and 1,470 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,46 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest

strategy:
matrix:
node_version: [16, 18]

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: pnpm

- name: Install deps
run: pnpm install

- name: Build
run: npm run build:path:notes

- uses: actions/configure-pages@v2

- uses: actions/upload-pages-artifact@v1
with:
path: dist

- name: Deploy
id: deployment
uses: actions/deploy-pages@v1
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import starlightImageZoom from "starlight-image-zoom";

// https://astro.build/config
export default defineConfig({
base: process.env.DEPLOY_BASE ?? '/',
base: process.env.DEPLOY_BASE ?? "/",
integrations: [
starlight({
plugins: [starlightImageZoom()],
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,9 @@
"remark-stringify": "^11.0.0",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0"
}
}
},
"engines": {
"node": ">=20.0.0"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 1e7a974

Please sign in to comment.