Skip to content

Commit f99f6a6

Browse files
Reorganise workflows dependencies
1 parent 77df0fe commit f99f6a6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/cd.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ permissions:
99
contents: read
1010

1111
jobs:
12+
audit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
- uses: actions/setup-node@v6
17+
with:
18+
node-version-file: .nvmrc
19+
- run: npm i
20+
- run: npm audit --omit=dev --audit-level=moderate
1221
test:
1322
strategy:
1423
matrix:
@@ -23,7 +32,7 @@ jobs:
2332
- run: npx tsc
2433
- run: npm test
2534
publish:
26-
needs: test
35+
needs: [audit, test]
2736
runs-on: ubuntu-latest
2837
steps:
2938
- uses: actions/checkout@v6

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
- run: npm i
1717
- run: npm audit --omit=dev --audit-level=moderate
1818
test:
19-
needs: audit
2019
strategy:
2120
matrix:
2221
os: [macos-latest, ubuntu-latest, windows-latest]

0 commit comments

Comments
 (0)