Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

feat: references prop #4

feat: references prop

feat: references prop #4

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Install NPM 9
run: npm install -g npm@9
- name: Install dependencies
run: npm install
- name: Lint code
run: npm run lint
- name: Build library
run: npm run build
- name: Generate documentation
run: npm run docs:generate
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish to GitHub Pages
uses: tsunematsu21/actions-publish-gh-pages@v1.0.2
with:
dir: docs
branch: gh-pages
token: ${{ secrets.GH_PAT }}