Skip to content

Commit f811691

Browse files
Adds a new helper to convert JSON to HTML code block (#5)
* Adds a new helper to convert JSON to HTML code block * Updates CI * Removes cache * retry * install * gitignore * gitignore
1 parent 7f0ca32 commit f811691

File tree

508 files changed

+12932
-17403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

508 files changed

+12932
-17403
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs:
55
build-and-upload-artifacts:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@v4
99
- uses: actions/setup-node@v3.1.1
1010
with:
11-
node-version: '14.17.3'
11+
node-version: '22.18.0'
1212
- run: npm install -g "yarn@1.22.5"
1313
shell: bash
1414
- uses: nick-fields/retry@v2
@@ -29,38 +29,55 @@ jobs:
2929
strategy:
3030
matrix:
3131
os: [ubuntu-latest]
32-
node-version: [12.x, 14.x]
32+
node-version: [22.x]
3333
steps:
34-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v4
3535
- name: Use Node.js ${{ matrix.node-version }}
3636
uses: actions/setup-node@v1
3737
with:
3838
node-version: ${{ matrix.node-version }}
39-
- run: yarn install
39+
- uses: nick-fields/retry@v2
40+
with:
41+
timeout_minutes: 6
42+
max_attempts: 3
43+
retry_on: error
44+
command: yarn install --immutable
4045
- run: yarn test
4146

4247
run-depcheck:
4348
runs-on: ubuntu-latest
4449
steps:
45-
- uses: actions/checkout@v2
46-
- name: Use Node.js 14.x
50+
- uses: actions/checkout@v4
51+
- name: Use Node.js 22.x
4752
uses: actions/setup-node@v1
4853
with:
49-
node-version: 14.x
54+
node-version: 22.x
55+
- uses: nick-fields/retry@v2
56+
with:
57+
timeout_minutes: 6
58+
max_attempts: 3
59+
retry_on: error
60+
command: yarn install --immutable
5061
- run: yarn depcheck
5162

5263
run-pre-commits:
5364
runs-on: ubuntu-latest
5465
steps:
55-
- uses: actions/checkout@v2
66+
- uses: actions/checkout@v4
5667
with:
5768
fetch-depth: 100 # need the history to do a changed files check below (source, origin)
5869
- uses: actions/setup-python@v2
59-
- name: Use Node.js 14.x
70+
- name: Use Node.js 22.x
6071
uses: actions/setup-node@v1
6172
with:
62-
node-version: 14.x
63-
- uses: pre-commit/action@v2.0.2
73+
node-version: 22.x
74+
- uses: nick-fields/retry@v2
75+
with:
76+
timeout_minutes: 6
77+
max_attempts: 3
78+
retry_on: error
79+
command: yarn install --immutable
80+
- uses: pre-commit/action@v3.0.0
6481
with:
6582
extra_args: --source ${{ github.event.pull_request.base.sha || 'HEAD~1' }} --origin ${{ github.event.pull_request.head.sha || 'HEAD' }}
6683

@@ -76,7 +93,7 @@ jobs:
7693
uses: actions/checkout@v2
7794
- uses: actions/setup-node@v2
7895
with:
79-
node-version: '14.x'
96+
node-version: '22.x'
8097
- name: Configure NPM authentication
8198
run: |
8299
yarn config set npmAlwaysAuth true
@@ -96,7 +113,7 @@ jobs:
96113
uses: actions/checkout@v2
97114
- uses: actions/setup-node@v2
98115
with:
99-
node-version: '14.x'
116+
node-version: '22.x'
100117
- name: Configure Github Packages authentication
101118
run: |
102119
yarn config set npmAlwaysAuth true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ build/
88
# Npmrc
99
.npmrc
1010

11+
.yarn/cache/*
12+
1113
### Code ###
1214
# Visual Studio Code - https://code.visualstudio.com/
1315
.settings/

0 commit comments

Comments
 (0)