Skip to content

Commit 4634e24

Browse files
committed
Run tests before npm publish GitHub action
1 parent c23bf89 commit 4634e24

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
@@ -8,7 +8,18 @@ on:
88
types: [created]
99

1010
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 16
18+
- run: npm ci
19+
- run: npm run test:ci
20+
1121
publish-npm:
22+
needs: test
1223
runs-on: ubuntu-latest
1324
steps:
1425
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)