Skip to content

fix(deps): update dependency semver to ^7.6.2 #392

fix(deps): update dependency semver to ^7.6.2

fix(deps): update dependency semver to ^7.6.2 #392

Workflow file for this run

name: website
on:
push:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install package dependencies
run: yarn
- name: Build Typescript project
run: yarn build
- name: Run Tests to Collect Coverage
run: yarn test
- name: Update Coverage Badge
run: |
mkdir -p website/build/img
npx make-coverage-badge --output-path ./website/build/img/coverage.svg
- name: Release to NPM using Semantic Release
if: ${{ success() }}
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build Docusaurus
run: |
cd website
yarn install
yarn build
cd -
- name: Deploy to GitHub Pages
if: ${{ success() }}
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: website/build
keep_history: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}