-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 988 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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: '20.8.1'
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
env:
HUSKY_SKIP_INSTALL: 1
run: pnpm install --frozen-lockfile
- name: Install semantic-release
run: pnpm add -g semantic-release@^23.0.7 @semantic-release/changelog@^6.0.3 @semantic-release/git@^10.0.1
- run: 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:
BRANCH: gh-pages
FOLDER: docs