Skip to content

Merge pull request #111 from homer0/next #18

Merge pull request #111 from homer0/next

Merge pull request #111 from homer0/next #18

Workflow file for this run

name: Release NPM package
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v2
with:
version: 9
- name: Install dependencies
env:
HUSKY_SKIP_INSTALL: 1
run: pnpm install --frozen-lockfile
- run: pnpm exec semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Generate documentation
run: pnpm run docs
- name: Deploy documentation
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs