Skip to content

Commit 07ba572

Browse files
chore(site): maintenance niceties (#570)
* chore(site): maintenance niceties * refactor(peerbit-org): extract docs build plugin * fix(ci): make pnpm cache work * fix(ci): let pnpm/action-setup use packageManager * fix(peerbit-org): support subpath hosting
1 parent 827f265 commit 07ba572

File tree

16 files changed

+472
-388
lines changed

16 files changed

+472
-388
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ jobs:
2828
- pnpm run test:ci:part-5
2929
steps:
3030
- uses: actions/checkout@v4
31-
- uses: actions/setup-node@v4
32-
with:
33-
node-version: ${{ matrix.node-version }}
3431
- uses: pnpm/action-setup@v4
3532
with:
3633
run_install: false
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
cache: pnpm
38+
cache-dependency-path: pnpm-lock.yaml
3739
- name: Install deps
3840
run: |
3941
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
@@ -72,12 +74,14 @@ jobs:
7274

7375
steps:
7476
- uses: actions/checkout@v4
75-
- uses: actions/setup-node@v4
76-
with:
77-
node-version: ${{ matrix.node-version }}
7877
- uses: pnpm/action-setup@v4
7978
with:
8079
run_install: false
80+
- uses: actions/setup-node@v4
81+
with:
82+
node-version: ${{ matrix.node-version }}
83+
cache: pnpm
84+
cache-dependency-path: pnpm-lock.yaml
8185
- name: Install deps
8286
run: |
8387
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

.github/workflows/site.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v4
3737

38-
- uses: actions/setup-node@v4
39-
with:
40-
node-version: 22.x
41-
4238
- uses: pnpm/action-setup@v4
4339
with:
4440
run_install: false
41+
- uses: actions/setup-node@v4
42+
with:
43+
node-version: 22.x
44+
cache: pnpm
45+
cache-dependency-path: pnpm-lock.yaml
4546

4647
- name: Install deps
4748
run: pnpm install --frozen-lockfile=false

apps/peerbit-org/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<meta name="description" content="A P2P framework" />
88
<meta property="og:title" content="Peerbit" />
99
<meta property="og:description" content="A P2P framework" />
10-
<meta property="og:image" content="/content/docs/peerbit-logo.png" />
10+
<meta property="og:image" content="content/docs/peerbit-logo.png" />
1111
<meta name="twitter:card" content="summary" />
12-
<link rel="alternate" type="application/rss+xml" title="Peerbit Updates" href="/content/docs/updates/all.xml" />
13-
<link rel="icon" href="/content/docs/media/favicon.ico" />
12+
<link rel="alternate" type="application/rss+xml" title="Peerbit Updates" href="content/docs/updates/all.xml" />
13+
<link rel="icon" href="content/docs/media/favicon.ico" />
1414
<script>
1515
(() => {
1616
try {
@@ -34,6 +34,6 @@
3434
</head>
3535
<body>
3636
<div id="root"></div>
37-
<script type="module" src="/src/main.tsx"></script>
37+
<script type="module" src="src/main.tsx"></script>
3838
</body>
3939
</html>

0 commit comments

Comments
 (0)