Skip to content

Merge pull request #84 from sp3ctum/feature/small-things #14

Merge pull request #84 from sp3ctum/feature/small-things

Merge pull request #84 from sp3ctum/feature/small-things #14

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build_deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20.9.0
steps:
- uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: "20.9.0"
cache: yarn
registry-url: "https://registry.yarnpkg.com"
- name: Set yarn version
run: yarn set version stable
- name: Install dependencies
run: yarn install --immutable
- name: build
run: yarn build
- name: lint:check
run: yarn lint:check
- name: test
run: yarn test
- name: code coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: yarn docs
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "docs"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- name: publish
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}