Skip to content

Commit

Permalink
Deprecate old node.js versions < v18
Browse files Browse the repository at this point in the history
- New lock
- Publish with Node v20
- Add node github workflow action
  • Loading branch information
exsilium committed Dec 6, 2023
1 parent 9b9277e commit 172e722
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 15 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Node CI

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 19.x, 20.x, 21.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: |
npm install
npm test
12 changes: 6 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 20
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
Expand Down
27 changes: 21 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@pylonide/treehugger",
"version": "0.1.0",
"version": "0.2.0",
"description": "treehugger is a Javascript library for program processing",
"author": "ajax.org B.V. <[email protected]>",
"author": "Sten Feldman <[email protected]>",
"license": "MIT",
"contributors": [
"ajax.org B.V. <[email protected]>",
{
"name": "Zef Hemel",
"email": "[email protected]"
Expand All @@ -24,7 +25,7 @@
"url": "http://github.com/pylonide/treehugger.git"
},
"engines": {
"node": ">= 12.22.1"
"node": ">= 18.18.2"
},
"devDependencies": {
"amd-loader": "~0.0.8",
Expand Down

0 comments on commit 172e722

Please sign in to comment.