Skip to content

Commit c782c5d

Browse files
committed
chore: use pnpm, update jsdoc
1 parent 1800c0a commit c782c5d

File tree

6 files changed

+3237
-10312
lines changed

6 files changed

+3237
-10312
lines changed

.github/workflows/tests.yml

+32-9
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,51 @@ on:
55
- "*"
66
pull_request:
77
branches:
8-
- master
8+
- main
99

1010
jobs:
1111
build:
1212
name: Perform tests
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node-version: [16.x]
16+
node-version: [18.x]
17+
1718
steps:
18-
- uses: actions/checkout@v3
19-
- name: Setup Node
19+
- name: Checkout 🛎️
20+
uses: actions/checkout@v3
21+
22+
- name: Setup Node 🐢
2023
uses: actions/setup-node@v3
2124
with:
2225
node-version: ${{ matrix.node-version }}
23-
cache: npm
26+
27+
- name: PNPM Setup 🟨
28+
uses: pnpm/action-setup@v2
29+
id: pnpm-install
30+
with:
31+
version: 8
32+
run_install: false
33+
34+
- name: Get pnpm store directory 📁
35+
id: pnpm-cache
36+
shell: bash
37+
run: |
38+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
39+
40+
- uses: actions/cache@v3
41+
name: Setup pnpm Cache ☁️
42+
with:
43+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
44+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
45+
restore-keys: |
46+
${{ runner.os }}-pnpm-store-
2447
25-
- name: Install & Test
48+
- name: Install & Test 🧪
2649
run: |
27-
npm ci
28-
npm run test
29-
50+
pnpm install
51+
pnpm test
52+
3053
- name: Upload coverage to Codecov
3154
uses: codecov/codecov-action@v3
3255
with:

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

jsdoc.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dictionaries": ["jsdoc","closure"]
1414
},
1515
"opts": {
16-
"template": "node_modules/better-docs",
16+
"template": "node_modules/clean-jsdoc-theme",
1717
"readme": "README.md",
1818
"destination": "docs"
1919
},

0 commit comments

Comments
 (0)