Skip to content

Commit a8d5817

Browse files
committed
update workflows
1 parent 4558852 commit a8d5817

File tree

6 files changed

+60
-85
lines changed

6 files changed

+60
-85
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request_target:
5+
paths:
6+
- 'src/**'
7+
- 'test/**'
8+
- '*.json'
49

510
jobs:
611
build:
712
strategy:
813
matrix:
9-
node-version: [16.x, 18.x, 19.x]
14+
node-version: [20.x, 22.x, 24.x]
1015
platform:
1116
- os: ubuntu-latest
1217
shell: bash
@@ -19,10 +24,10 @@ jobs:
1924

2025
steps:
2126
- name: Checkout Repository
22-
uses: actions/checkout@v1.1.0
27+
uses: actions/checkout@v4
2328

2429
- name: Use Nodejs ${{ matrix.node-version }}
25-
uses: actions/setup-node@v1
30+
uses: actions/setup-node@v4
2631
with:
2732
node-version: ${{ matrix.node-version }}
2833

@@ -31,3 +36,4 @@ jobs:
3136

3237
- name: Run Tests
3338
run: npm test -- -c -t0
39+

.github/workflows/commit-if-modified.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/copyright-year.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/isaacs-makework.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/package-json-repo.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/typedoc.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
# Single deploy job since we're just deploying
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
- name: Use Nodejs ${{ matrix.node-version }}
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 20.x
37+
- name: Install dependencies
38+
run: npm install
39+
- name: Generate typedocs
40+
run: npm run typedoc
41+
42+
- name: Setup Pages
43+
uses: actions/configure-pages@v4
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v4
46+
with:
47+
path: './docs'
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)