Skip to content

Commit 0a9f754

Browse files
authored
Update npm-publish.yml
1 parent b34ed5b commit 0a9f754

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,18 @@ on:
1010
branches:
1111
- main
1212
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
- run: npm ci
21+
- run: npm test
22+
1323
publish:
24+
needs: build
1425
runs-on: ubuntu-latest
1526
steps:
1627
- name: Checkout code

0 commit comments

Comments
 (0)