Downgrade to node 16 #181
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: | |
release: | |
name: Release | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
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: | |
semantic_version: 18 | |
extra_plugins: | | |
@semantic-release/changelog@6 | |
@semantic-release/git@10 | |
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 |