Skip to content

Commit

Permalink
ci: only commit to gh-pages when there are changes
Browse files Browse the repository at this point in the history
  • Loading branch information
smeijer committed Oct 3, 2022
1 parent 751701a commit d18b72f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"docz:dev": "docz dev",
"docz:build": "docz build --base /leaflet-geosearch/",
"docz:serve": "docz build && docz serve",
"docs:update": "run-s clean build docz:build && git checkout gh-pages && find . -maxdepth 1 -type f -not -path '*/\\.*' -delete && cp -r .docz/dist/* . && git add . && git commit -m \"update docs\" && git checkout - && git push origin gh-pages",
"docs:update": "run-s clean build docz:build && git checkout gh-pages && find . -maxdepth 1 -type f -not -path '*/\\.*' -delete && cp -r .docz/dist/* . && git add . && (git diff --exit-code || git commit -m \"update docs\") && git checkout - && git push origin gh-pages",
"prepublish": "run-s test clean build",
"ci:lint": "eslint '{docs,src,test}/**/*.{js,ts,tsx}' -c ./.eslintrc.js",
"ci:tsc": "tsc --noEmit --project ./tsconfig.json",
Expand Down

0 comments on commit d18b72f

Please sign in to comment.