Skip to content

Commit 9fd6bfc

Browse files
authored
Update publish.yml
1 parent 360e809 commit 9fd6bfc

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@ jobs:
1515
steps:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
18-
18+
with:
19+
fetch-depth: 0 # Important to get full history for version detection
20+
1921
- name: Setup Node.js
2022
uses: actions/setup-node@v3
2123
with:
2224
node-version: 18
2325
registry-url: 'https://registry.npmjs.org'
2426

2527
- name: Install dependencies
26-
run: npm ci
28+
run: |
29+
npm install
30+
npm audit fix --audit-level=moderate
2731
2832
- name: Run tests
2933
run: npm test

0 commit comments

Comments
 (0)