update github action

- apparently it needs sudo with no password to npm install?
- also added ability to run the json update action manually
This commit is contained in:
Hugh Rundle 2021-01-28 18:57:43 +11:00
parent 092f9d1440
commit 67f63d9202
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,4 @@
npm install -g mapshaper
sudo npm install -g mapshaper
mapshaper ./boundaries.geo.json snap -clean -o force precision=0.0001 format=geojson ./boundaries.geo.json
npm install -g topojson-server
sudo npm install -g topojson-server
geo2topo ./boundaries.geo.json -q 50000 > ./website/data/boundaries.topo.json

View file

@ -5,6 +5,7 @@ on:
- master
paths:
- 'boundaries.geo.json'
workflow_dispatch:
jobs:
prepare:
runs-on: ubuntu-latest