Skip to content

Commit 51bd4f7

Browse files
authored
Update npm-publish.yml
1 parent 4e86bde commit 51bd4f7

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,31 @@ on:
77
release:
88
types: [created]
99

10+
1011
jobs:
1112
build:
1213
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [20.x]
18+
1319
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
20+
- name: Check out repository
21+
uses: actions/checkout@v3
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v3
1625
with:
17-
node-version: 20
18-
- run: yarn install
26+
node-version: ${{ matrix.node-version }}
27+
28+
- name: Install dependencies
29+
run: yarn install
30+
31+
- name: Run tests
1932
env:
2033
TOKEN: ${{ secrets.TOKEN }}
21-
- run: yarn test
34+
run: yarn test
2235

2336
publish-npm:
2437
needs: build

0 commit comments

Comments
 (0)