Skip to content

Upgrade release machine to ubuntu-22.04 #177

Upgrade release machine to ubuntu-22.04

Upgrade release machine to ubuntu-22.04 #177

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Generate coverage report
run: yarn coverage
- name: Upload coverage report
uses: codecov/codecov-action@v1
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
id: semantic
with:
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GH_PA_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build documentation
if: steps.semantic.outputs.new_release_published == 'true'
run: yarn build:docs
- name: Deploy documentation to Github Pages
if: steps.semantic.outputs.new_release_published == 'true'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_PA_TOKEN }}
publish_dir: ./docs