Skip to content

Commit eb18539

Browse files
authored
Add styles and script to GitHub pages website directory (SchemaStore#4766)
1 parent d5ea3d9 commit eb18539

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/github-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: 'actions/checkout@v4'
2828
- uses: 'actions/setup-node@v4'
2929
with:
30-
node-version: '18'
30+
node-version: '22'
3131
cache: 'npm'
3232
cache-dependency-path: './package-lock.json'
3333
- run: 'npm clean-install'

cli.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,8 +1082,8 @@ async function taskBuildWebsite() {
10821082
<html>
10831083
<head prefix="og: http://ogp.me/ns#">
10841084
<title>${pageTitle}</title>
1085+
<!-- Generated from cli.js -->
10851086
1086-
<base href="https://www.schemastore.org/" />
10871087
<meta charset="utf-8" />
10881088
<meta name="description" content="${pageDescription}" />
10891089
<meta name="viewport" content="initial-scale=1.0" />
@@ -1153,6 +1153,12 @@ async function taskBuildWebsite() {
11531153
'./src/api/json/catalog.json',
11541154
'./website/api/json/catalog.json',
11551155
)
1156+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
1157+
await fs.cp('./src/css', './website/css', { recursive: true })
1158+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
1159+
await fs.cp('./src/img', './website/img', { recursive: true })
1160+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
1161+
await fs.cp('./src/js', './website/js', { recursive: true })
11561162
}
11571163

11581164
async function assertFileSystemIsValid() {

0 commit comments

Comments
 (0)