Skip to content

Commit

Permalink
docs: use script
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Jan 3, 2023
1 parent df1a744 commit cb0ebe5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
[build]
publish = "docs/.vitepress/dist"
command = "npx pnpm i --store=node_modules/.pnpm-store --frozen-lockfile && npm run docs:build"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF docs package.json pnpm-lock.yaml netlify.toml"
ignore = "./scripts/docs-check.sh"
6 changes: 6 additions & 0 deletions scripts/docs-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
echo "prev commit: $CACHED_COMMIT_REF"
echo "current commit: $COMMIT_REF"
git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF docs package.json pnpm-lock.yaml netlify.toml scripts/docs-check.sh
status=$?
echo "diff exit code: $status"
exit $status

0 comments on commit cb0ebe5

Please sign in to comment.