Skip to content

Commit 86d8246

Browse files
committed
ci: Add github action to automatically publish the docs
1 parent 62a926f commit 86d8246

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,37 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
2222
with:
2323
fetch-depth: 0
2424

2525
- name: Setup Node.js
26-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@v5
2727
with:
28-
node-version: '20'
28+
node-version: '24'
2929
cache: 'pnpm'
3030

3131
- name: Setup Pages
32-
uses: actions/configure-pages@v4
32+
uses: actions/configure-pages@v5
3333

34-
- name: Install pnpm
34+
# version isn't set
35+
# it will use the one from `packageManager` in the package.json
36+
- name: Setup pnpm
3537
uses: pnpm/action-setup@v4
38+
39+
- name: Get pnpm store directory
40+
id: pnpm-cache
41+
shell: bash
42+
run: |
43+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
44+
45+
- name: Setup pnpm cache
46+
uses: actions/cache@v4
3647
with:
37-
version: 10.10.0
48+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
49+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
50+
restore-keys: |
51+
${{ runner.os }}-pnpm-store-
3852
3953
- name: Install dependencies
4054
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)