add radius for single points (#3) #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 1 | |
matrix: | |
node-version: | |
- 16 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/cache@v2 | |
id: cache | |
with: | |
path: node_modules/ | |
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('package*.json') }} | |
- run: npm ci --ignore-scripts | |
if: steps.cache.outputs.cache-hit != 'true' | |
- run: npm test | |
- run: npm run lint | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: npm ci --ignore-scripts | |
- run: npm run build:docs | |
- name: Make GitHub links absolute | |
run: shopt -s globstar; | |
sed | |
--in-place | |
--expression='s:/develop/docs/:/${{ github.sha }}/docs/:g' | |
--expression='s:<img src="docs/assets/:<img src="media/:g' | |
docs/**/*.html; | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs | |
# for v3.html and perhaps CNAME | |
keep_files: true | |
- name: Publish to npm | |
run: | | |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} | |
npm publish --ignore-scripts | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |