Skip to content

Commit 2f8d77d

Browse files
authored
fix: add again workflows (#4)
1 parent 6aacee5 commit 2f8d77d

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

.github/workflows/nodejs-ts.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
nodejs:
11+
# Documentation: https://github.com/zakodium/workflows#nodejs-ci
12+
uses: zakodium/workflows/.github/workflows/nodejs.yml@nodejs-v1
13+
with:
14+
node-version-matrix: '[14, 16, 18]'
15+
lint-check-types: true

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
# Documentation: https://github.com/zakodium/workflows#release
11+
uses: zakodium/workflows/.github/workflows/release.yml@release-v1
12+
with:
13+
npm: true
14+
secrets:
15+
github-token: ${{ secrets.BOT_TOKEN }}
16+
npm-token: ${{ secrets.NPM_BOT_TOKEN }}

.github/workflows/typedoc.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy TypeDoc on GitHub pages
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
8+
env:
9+
NODE_VERSION: 16.x
10+
ENTRY_FILE: 'src/index.ts'
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ env.NODE_VERSION }}
20+
- name: Install dependencies
21+
run: npm install
22+
- name: Build documentation
23+
uses: zakodium/typedoc-action@v2
24+
with:
25+
entry: ${{ env.ENTRY_FILE }}
26+
- name: Deploy to GitHub pages
27+
uses: JamesIves/github-pages-deploy-action@releases/v4
28+
with:
29+
token: ${{ secrets.BOT_TOKEN }}
30+
branch: gh-pages
31+
folder: docs
32+
clean: true

0 commit comments

Comments
 (0)