blob: b31560762c1f0617bd35d7b52c9efa37cd43cae2 [file] [log] [blame]
name: Release
on:
push:
branches:
- master
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm run docs
env:
# workaround "Failed to replace env in config: ${NPM_TOKEN}" error
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: maxheld83/ghpages@master
env:
BUILD_DIR: docs/
GH_PAT: ${{ secrets.OCTOKIT_PAT }}