Skip to content

Commit 738a1a8

Browse files
committed
chore: update packages; publish docs
1 parent af3ac5d commit 738a1a8

24 files changed

+4275
-9611
lines changed

.eslintrc.json

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

.github/codeql/codeql-configuration.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
name: "CodeQL"
1+
name: 'CodeQL'
22

33
on:
44
push:
55
branches:
66
- main
77
- develop
88
pull_request:
9-
# The branches below must be a subset of the branches above
109
branches:
1110
- main
11+
- develop
1212

1313
schedule:
14-
- cron: '0 0 * * 5'
14+
- cron: '0 0 1 * *'
1515

1616
jobs:
1717
analyze:
@@ -23,18 +23,17 @@ jobs:
2323
security-events: write
2424

2525
steps:
26-
- name: Checkout repository
27-
uses: actions/checkout@v3
28-
29-
# Initializes the CodeQL tools for scanning.
30-
- name: Initialize CodeQL
31-
uses: github/codeql-action/init@v2
32-
with:
33-
config-file: ./.github/codeql/codeql-configuration.yml
34-
35-
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v2
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
3728

29+
# Initializes the CodeQL tools for scanning.
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v3
32+
with:
33+
languages: javascript-typescript
34+
build-mode: none
3835

39-
- name: Perform CodeQL Analysis
40-
uses: github/codeql-action/analyze@v2
36+
- name: Perform CodeQL Analysis
37+
uses: github/codeql-action/analyze@v3
38+
with:
39+
category: '/language:javascript-typescript'

.github/workflows/pr.yaml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,22 @@ on:
1111
- main
1212
- develop
1313

14+
permissions:
15+
id-token: write
16+
1417
jobs:
1518
buildAndTest:
1619
env:
1720
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
1821
name: Build and test
1922
runs-on: ubuntu-latest
2023

21-
strategy:
22-
matrix:
23-
node-version: [16.x] # [12.x, 14.x]
24-
2524
steps:
26-
- uses: actions/checkout@v3
27-
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v3
25+
- uses: actions/checkout@v4
26+
- name: Use Node.js
27+
uses: actions/setup-node@v4
2928
with:
30-
node-version: ${{ matrix.node-version }}
29+
node-version-file: '.nvmrc'
3130
cache: 'npm'
3231
- run: npm ci
3332
- run: npm run build --if-present
@@ -36,6 +35,25 @@ jobs:
3635
continue-on-error: true # TODO
3736
- run: npm run lint
3837
- run: npm run mutate
39-
- uses: codecov/codecov-action@v3
38+
39+
- uses: codecov/codecov-action@v5
40+
if: github.ref == 'refs/heads/develop' && github.event_name == 'push'
41+
with:
42+
token: ${{ secrets.CODECOV_TOKEN }}
43+
44+
- name: Publish docs
45+
if: github.ref == 'refs/heads/develop' && github.event_name == 'push'
46+
run: npm run doc-gen
47+
48+
- id: "upload-documentation"
49+
name: "Upload Pages artifact"
50+
uses: "actions/upload-pages-artifact@v3"
51+
with:
52+
path: "docs/"
53+
name: typedocs
54+
55+
- id: "deployment"
56+
name: "Deploy documentation to GitHub Pages"
57+
uses: "actions/deploy-pages@v4"
4058
with:
41-
token: ${{ secrets.CODECOV_TOKEN }}
59+
artifact_name: typedocs

.github/workflows/release.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Release Node.js Package
32

43
on:
@@ -9,13 +8,13 @@ jobs:
98
build:
109
runs-on: ubuntu-latest
1110
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
1413
with:
15-
node-version: 16
14+
node-version-file: '.nvmrc'
1615
registry-url: 'https://registry.npmjs.org'
1716
- run: npm install
1817
- run: npm run build
1918
- run: npm publish --access public
2019
env:
21-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,5 @@ dist
105105

106106
# stryker temp files
107107
.stryker-tmp
108-
reports/mutation/
108+
reports/mutation/
109+
docs/

.npmignore

Whitespace-only changes.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.15.1
1+
v20.18.2

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
docs
2+
reports
3+
coverage
4+
dist

.vscode/settings.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"cSpell.words": [
3-
"Jelban",
4-
"GOOGLEMAIL"
5-
]
6-
}
2+
"cSpell.words": ["Jelban", "GOOGLEMAIL"]
3+
}

0 commit comments

Comments
 (0)