Skip to content

Commit 07e287a

Browse files
ntaroccokpsherva
authored andcommitted
tests: add build step
1 parent 0b94251 commit 07e287a

File tree

3 files changed

+8375
-9218
lines changed

3 files changed

+8375
-9218
lines changed

.github/workflows/js-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616

1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020

2121
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@v3
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525

@@ -31,3 +31,6 @@ jobs:
3131

3232
- name: Test
3333
run: npm test
34+
35+
- name: Test build
36+
run: npm run build

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@ jobs:
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v1
14+
uses: actions/checkout@v3
1515

1616
- name: Setup Node.js
17-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v3
1818
with:
19-
node-version: 14
19+
node-version: '18.x'
2020
registry-url: 'https://registry.npmjs.org'
2121

2222
- name: Install and Build
2323
run: |
2424
npm install
2525
npm run build
26+
2627
- name: Publish on NPM
2728
run: npm publish --access public
2829
env:

0 commit comments

Comments
 (0)