Skip to content

Commit 8b0edae

Browse files
committed
Deprecation of node < v18
- Deprecate older node engines - Add node action for github workflows - Update to publish action to use node v20
1 parent e057622 commit 8b0edae

File tree

4 files changed

+57
-19
lines changed

4 files changed

+57
-19
lines changed

.github/workflows/nodejs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Node CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [18.x, 19.x, 20.x, 21.x]
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: npm install and test
21+
run: |
22+
npm install
23+
npm test

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
1616
with:
17-
node-version: 12
17+
node-version: 20
1818
- run: npm ci
1919
- run: npm test
2020

2121
publish-npm:
2222
needs: build
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v1
25+
- uses: actions/checkout@v3
26+
- uses: actions/setup-node@v3
2727
with:
28-
node-version: 12
28+
node-version: 20
2929
registry-url: https://registry.npmjs.org/
3030
- run: npm ci
3131
- run: npm publish

package-lock.json

Lines changed: 24 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "@pylonide/smith",
3-
"version": "0.1.24",
3+
"version": "0.2.0",
44
"description": "Smith is an RPC agent system for Node.JS used in architect and vfs.",
5-
"author": "Ajax.org B.V. <info@ajax.org>",
5+
"author": "Sten Feldman <exile@chamber.ee>",
66
"license": "MIT",
77
"contributors": [
8+
"Ajax.org B.V. <info@ajax.org>",
89
{
910
"name": "Tim Caswell",
1011
"email": "tim@c9.io>"
@@ -20,7 +21,7 @@
2021
},
2122
"main": "smith.js",
2223
"engines": {
23-
"node": ">= 12.22.1"
24+
"node": ">= 18.18.2"
2425
},
2526
"dependencies": {
2627
"msgpack-js": "~0.3.0"

0 commit comments

Comments
 (0)