Skip to content

Commit

Permalink
chore: try to use actions/cache@v4 (shikijs/shiki#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Nov 20, 2024
1 parent a8c5a31 commit 44f4571
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
- name: Install modules
run: bun install --frozen-lockfile --verbose

- uses: actions/cache@v4
with:
path: ./docs/.vitepress/cache/twoslash
key: ${{ runner.os }}-twoslash-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('docs/**') }}
restore-keys: |
${{ runner.os }}-twoslash
- name: Build
run: bun run build

Expand Down
4 changes: 3 additions & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export default defineConfig({
markdown: {
codeTransformers: [
transformerTwoslash({
typesCache: createFileSystemTypesCache(),
typesCache: createFileSystemTypesCache({
dir: "docs/.vitepress/cache/twoslash",
}),
}) /**shikiColorizedBrackets()**/,
],
config: (md) => {
Expand Down

0 comments on commit 44f4571

Please sign in to comment.