Skip to content

Commit

Permalink
feat: snyk pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
DevRico003 committed Feb 28, 2024
1 parent ebd683a commit 8dbdb03
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,22 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Check for package-lock.json
id: lockfile
run: |
if [[ -f package-lock.json ]]; then
echo "::set-output name=exists::true"
else
echo "::set-output name=exists::false"
fi
- name: Install dependencies
run: npm ci
run: |
if [[ "${{ steps.lockfile.outputs.exists }}" == "true" ]]; then
npm ci
else
npm install
fi
- name: Build
run: npm run build

Expand Down

0 comments on commit 8dbdb03

Please sign in to comment.