Skip to content

Commit 44af6c0

Browse files
authored
chore: dependencies and refactor ci (#506)
* chore: bump node version to 20 * chore update dependencies * chore update dependencies * chore: bump node version to 20
1 parent e1f40b0 commit 44af6c0

File tree

7 files changed

+1082
-1240
lines changed

7 files changed

+1082
-1240
lines changed

.github/workflows/ci.yml

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,33 @@
1-
name: 'build-test'
1+
name: "build"
22
on:
3-
push:
3+
push:
44
branches:
55
- main
66
pull_request:
7-
types: [opened, synchronize, reopened]
7+
types: [opened, synchronize, reopened]
88

99
jobs:
10-
build:
10+
build:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: ["16", "18"]
14+
node-version: ["20"]
1515
steps:
1616
- uses: actions/checkout@b56e6a3d768b11aef1d4c73977caf6413c0d74c8 # v3.2.0
1717
with:
1818
fetch-depth: 0
19-
19+
2020
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
2121
with:
2222
node-version: ${{ matrix.node-version }}
2323
- name: Install dependencies
24-
run: yarn install --ignore-engines
24+
run: yarn install
2525

2626
- name: Check format and lint
27-
if: matrix.node-version == 16
2827
run: yarn run format-check && yarn run lint
2928

3029
- name: Run tests
3130
run: yarn test
3231

3332
- name: Build and package
34-
if: matrix.node-version == 16
3533
run: yarn run build

.github/workflows/codeql.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ name: 'Code scanning'
22

33
on:
44
push:
5-
branches: [ develop, main ]
5+
branches: [ main ]
66
pull_request:
77
# The branches below must be a subset of the branches above
8-
branches: [ develop ]
9-
schedule:
10-
- cron: '0 22 * * 0'
8+
branches: [ main ]
9+
1110

1211
jobs:
1312
CodeQL-Build:

.github/workflows/release.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
2424
with:
25-
node-version: 18
25+
node-version: 20
2626

2727
- name: Install dependencies
2828
run: yarn
@@ -36,8 +36,6 @@ jobs:
3636
release-type: node
3737
package-name: action-docs
3838
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false},{"type":"build","section":"Miscellaneous","hidden":true}]'
39-
last-release-sha: 26343d22fecbbc6bc273ee0b7b80b9267c587d6a
40-
release-as: v1.3.0
4139
- name: Publish to NPM
4240
run: yarn publish
4341
if: ${{ steps.release.outputs.release_created }}

.github/workflows/sonar.yml

+37-36
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
1-
name: 'sonar'
2-
on:
3-
push:
4-
branches:
5-
- main
6-
# See https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target for security implications.
7-
pull_request_target:
8-
types: [opened, synchronize, reopened]
1+
# name: 'sonar'
2+
# on:
3+
# push:
4+
# branches:
5+
# - main
6+
# # See https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target for security implications.
7+
# pull_request_target:
8+
# types: [opened, synchronize, reopened]
99

10-
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@b56e6a3d768b11aef1d4c73977caf6413c0d74c8 # v3.2.0
15-
with:
16-
fetch-depth: 0
10+
# jobs:
11+
# build:
12+
# runs-on: ubuntu-latest
13+
# steps:
14+
# - uses: actions/checkout@b56e6a3d768b11aef1d4c73977caf6413c0d74c8 # v3.2.0
15+
# with:
16+
# fetch-depth: 0
1717

18-
- name: Get info
19-
id: info
20-
run: |
21-
echo "repo_name=$(echo $GITHUB_REPOSITORY| cut -d / -f 2)" >> $GITHUB_OUTPUT
22-
echo "repo_owner=$(echo $GITHUB_REPOSITORY| cut -d / -f 1)" >> $GITHUB_OUTPUT
18+
# - name: Get info
19+
# id: info
20+
# run: |
21+
# echo "repo_name=$(echo $GITHUB_REPOSITORY| cut -d / -f 2)" >> $GITHUB_OUTPUT
22+
# echo "repo_owner=$(echo $GITHUB_REPOSITORY| cut -d / -f 1)" >> $GITHUB_OUTPUT
2323

24-
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
25-
with:
26-
node-version: 18
27-
- name: Install dependencies
28-
run: yarn install --ignore-engines
24+
# - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
25+
# with:
26+
# node-version: 18
27+
# - name: Install dependencies
28+
# run: yarn install --ignore-engines
2929

30-
- name: Run all checks and build
31-
run: yarn run all
3230

33-
- name: SonarCloud Scan
34-
uses: sonarsource/sonarcloud-github-action@db501078e936e4b4c8773d1bb949ba9ddb7b6b6a # v1.9
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
38-
with:
39-
args: >
40-
-Dsonar.organization=${{ steps.info.outputs.repo_owner }}
41-
-Dsonar.projectKey=${{ steps.info.outputs.repo_name }}
31+
# - name: Run all checks and build
32+
# run: yarn run all
33+
34+
# - name: SonarCloud Scan
35+
# uses: sonarsource/sonarcloud-github-action@db501078e936e4b4c8773d1bb949ba9ddb7b6b6a # v1.9
36+
# env:
37+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
39+
# with:
40+
# args: >
41+
# -Dsonar.organization=${{ steps.info.outputs.repo_owner }}
42+
# -Dsonar.projectKey=${{ steps.info.outputs.repo_name }}

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v20

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
],
5151
"devDependencies": {
5252
"@types/figlet": "^1.5.0",
53-
"@types/jest": "^29.5.0",
53+
"@types/jest": "^29.5.12",
5454
"@types/showdown": "^2.0.6",
5555
"@typescript-eslint/parser": "^6.20.0",
5656
"eslint": "^8.56.0",
@@ -59,7 +59,7 @@
5959
"eslint-plugin-prettier": "^5.1.0",
6060
"jest": "^29.7.0",
6161
"nyc": "^15.1.0",
62-
"prettier": "^3.2.0",
62+
"prettier": "^3.2.5",
6363
"semantic-release": "^23.0.0",
6464
"ts-jest": "^29.1.0",
6565
"typescript": "^5.3.0",

0 commit comments

Comments
 (0)