This repository has been archived by the owner on May 22, 2024. It is now read-only.
feat: classDependsOn() #9
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: 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 }} |