Skip to content

Commit 3d83754

Browse files
committed
chore: update GitHub Actions workflows for improved setup and consistency
1 parent f46976a commit 3d83754

File tree

2 files changed

+15
-34
lines changed

2 files changed

+15
-34
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,44 +23,25 @@ jobs:
2323
build:
2424
runs-on: ubuntu-latest
2525
steps:
26-
- name: Checkout
27-
uses: actions/checkout@v4
28-
29-
- name: Setup Node.js
30-
uses: actions/setup-node@v4
31-
with:
32-
node-version: "lts/*"
33-
34-
- name: Setup pnpm
26+
- name: Checkout 🛎️
27+
uses: actions/checkout@v5
28+
- name: Setup pnpm 🔧
3529
uses: pnpm/action-setup@v4
30+
- name: Setup Node.js 🔧
31+
uses: actions/setup-node@v6
3632
with:
37-
version: 9
38-
39-
- name: Get pnpm store directory
40-
shell: bash
41-
run: |
42-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
43-
44-
- name: Setup pnpm cache
45-
uses: actions/cache@v4
46-
with:
47-
path: ${{ env.STORE_PATH }}
48-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49-
restore-keys: |
50-
${{ runner.os }}-pnpm-store-
51-
52-
- name: Install dependencies
33+
node-version: "lts/*"
34+
check-latest: true
35+
cache: "pnpm"
36+
- name: Install dependencies 🪄
5337
run: pnpm install --frozen-lockfile
54-
55-
- name: Build documentation
38+
- name: Build documentation 💎
5639
run: |
5740
cd docs
5841
pnpm run build
59-
60-
- name: Setup Pages
42+
- name: Setup Pages 📄
6143
uses: actions/configure-pages@v5
62-
63-
- name: Upload artifact
44+
- name: Upload artifact 🚀
6445
uses: actions/upload-pages-artifact@v3
6546
with:
6647
path: ./docs/dist

.github/workflows/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: main
1+
name: Test & Build Package
22

33
on:
44
push:
@@ -19,13 +19,13 @@ jobs:
1919
uses: actions/checkout@v5
2020
- name: Setup pnpm 🔧
2121
uses: pnpm/action-setup@v4
22-
- name: Setup node 🔧
22+
- name: Setup Node.js 🔧
2323
uses: actions/setup-node@v6
2424
with:
2525
node-version: ${{ matrix.node }}
2626
check-latest: true
2727
cache: "pnpm"
28-
- name: Install 🪄
28+
- name: Install dependencies 🪄
2929
run: pnpm install --frozen-lockfile
3030
- name: Lint 🔍
3131
run: pnpm run lint

0 commit comments

Comments
 (0)