Skip to content

2.1.1

2.1.1 #85

Workflow file for this run

name: "release"
on:
push:
tags:
- "v*"
jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"
steps:
- name: git-checkout
uses: actions/checkout@v2
- name: npm ci
run: npm ci
- name: Lint
run: npm run eslint
- name: npm test
run: npm test
- name: Automatic release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.PAT_TOKEN }}"
prerelease: false
- name: Generate documentation
run: npm run generate-docs || true
- name: nojekyll
run: touch docs/.nojekyll
- name: CNAME
run: echo "$CNAME" > docs/CNAME
if: env.CNAME != ''
env:
CNAME: ${{ vars.CNAME }}
- name: Push documentation
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: docs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to npm
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public