Skip to content

Commit ec0b946

Browse files
authored
[CI] Netlify production sanity checks: ignore canonical links (open-telemetry#4943)
1 parent 6a828d6 commit ec0b946

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

netlify.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[build]
22
publish = "public"
3-
command = "npm run seq -- build:preview diff:check"
3+
command = "npm run netlify-build:preview"
44

55
[context.production]
6-
command = "npm run seq -- build:production diff:check"
6+
command = "npm run netlify-build:production"
77

88
[[redirects]]
99
from = "https://docs.opentelemetry.io/*"

package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"spelling": "cSpell:ignore docsy elemetry HTMLTEST hugo loglevel netlify nowrap prebuild precheck preinstall postbuild postget refcache textlint -",
2+
"spelling": "cSpell:ignore docsy elemetry htmltest hugo loglevel netlify nowrap prebuild precheck preinstall postbuild postget refcache textlint -",
33
"Notes": [
44
"The 'all' runs _all_ named scripts in sequence, even if one fails; and exits with failure in that case."
55
],
@@ -75,18 +75,22 @@
7575
"install:netlify-cli": "npm list netlify-cli || npm install netlify-cli",
7676
"log:check:links": "npm run check:links | tee tmp/build-log.txt",
7777
"make:public": "make public ls-public",
78+
"netlify-build:preview": "npm run seq -- build:preview diff:check",
79+
"netlify-build:production": "npm run build:production",
7880
"postbuild:preview": "npm run _check:links--warn",
7981
"postbuild:production": "npm run _check:links--warn",
8082
"postget:submodule": "git submodule",
83+
"postnetlify-build:production": "git restore .htmltest.yml && npm run diff:check",
8184
"prebuild:preview": "npm run _prebuild",
8285
"prebuild:production": "npm run _prebuild",
8386
"prebuild": "npm run _prebuild",
8487
"precheck:links:internal": "npm run build",
8588
"precheck:links": "npm run build",
89+
"prefix:submodules": "npm run update:submodule",
90+
"prenetlify-build:production": "echo 'IgnoreTagAttribute: rel' >> .htmltest.yml",
8691
"prepare": "npm run seq -- get:submodule _prepare:docsy",
8792
"preserve:hugo": "npm run _prebuild",
8893
"preserve:netlify": "npm run seq -- _prebuild install:netlify-cli",
89-
"prefix:submodules": "npm run update:submodule",
9094
"schemas:update": "npm run update:submodule content-modules/opentelemetry-specification",
9195
"seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ",
9296
"serve:hugo": "npm run _serve:hugo -- --renderToMemory",

0 commit comments

Comments
 (0)