Skip to content

Commit

Permalink
Added npm audit in CI and Fix package dependencise volnearabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
linxiaoxin committed May 25, 2024
1 parent eef0856 commit e4e50c3
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 97 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ on:
branches: [ "main" ]
#declare environment variables
jobs:
build_and_test:
audit:
name: Audit Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Audit packages
run: npm audit --audit-level moderate
env:
CI: true
build:

runs-on: ubuntu-latest

Expand Down
170 changes: 77 additions & 93 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@types/react": "18.2.12",
"@types/react-dom": "18.2.5",
"chart.js": "4.2.1",
"next": "13.4.8",
"next": "^14.2.3",
"primeflex": "^3.3.1",
"primeicons": "^6.0.1",
"primereact": "^10.6.5",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
".next/types/**/*.ts",
"dist/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
}

0 comments on commit e4e50c3

Please sign in to comment.