Auditing the deps. #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD Pipeline | |
on: | |
push: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
name: Build Frontend Artifact | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: 'npm' | |
- name: Install Dependencies | |
run: | | |
cd frontend | |
npm i | |
- name: Build artifact | |
run: | | |
cd frontend | |
npm run build | |
- uses: actions/upload-pages-artifact@v1 | |
with: | |
path: frontend/build | |
# - id: build-publish | |
# uses: bitovi/[email protected] | |
# with: | |
# path: build # change to your build folder | |
audit: | |
name: Audit Frontend Deps | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run the audit on production deps only | |
run: npm audit --omit=dev |