Skip to content

Commit

Permalink
[CI] Netlify production sanity checks: ignore canonical links (open-t…
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Aug 3, 2024
1 parent 6a828d6 commit ec0b946
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[build]
publish = "public"
command = "npm run seq -- build:preview diff:check"
command = "npm run netlify-build:preview"

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

[[redirects]]
from = "https://docs.opentelemetry.io/*"
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"spelling": "cSpell:ignore docsy elemetry HTMLTEST hugo loglevel netlify nowrap prebuild precheck preinstall postbuild postget refcache textlint -",
"spelling": "cSpell:ignore docsy elemetry htmltest hugo loglevel netlify nowrap prebuild precheck preinstall postbuild postget refcache textlint -",
"Notes": [
"The 'all' runs _all_ named scripts in sequence, even if one fails; and exits with failure in that case."
],
Expand Down Expand Up @@ -75,18 +75,22 @@
"install:netlify-cli": "npm list netlify-cli || npm install netlify-cli",
"log:check:links": "npm run check:links | tee tmp/build-log.txt",
"make:public": "make public ls-public",
"netlify-build:preview": "npm run seq -- build:preview diff:check",
"netlify-build:production": "npm run build:production",
"postbuild:preview": "npm run _check:links--warn",
"postbuild:production": "npm run _check:links--warn",
"postget:submodule": "git submodule",
"postnetlify-build:production": "git restore .htmltest.yml && npm run diff:check",
"prebuild:preview": "npm run _prebuild",
"prebuild:production": "npm run _prebuild",
"prebuild": "npm run _prebuild",
"precheck:links:internal": "npm run build",
"precheck:links": "npm run build",
"prefix:submodules": "npm run update:submodule",
"prenetlify-build:production": "echo 'IgnoreTagAttribute: rel' >> .htmltest.yml",
"prepare": "npm run seq -- get:submodule _prepare:docsy",
"preserve:hugo": "npm run _prebuild",
"preserve:netlify": "npm run seq -- _prebuild install:netlify-cli",
"prefix:submodules": "npm run update:submodule",
"schemas:update": "npm run update:submodule content-modules/opentelemetry-specification",
"seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ",
"serve:hugo": "npm run _serve:hugo -- --renderToMemory",
Expand Down

0 comments on commit ec0b946

Please sign in to comment.