diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..5955fac --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -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 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index be9461b..fa9dca9 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,10 +11,10 @@ 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 @@ -22,10 +22,10 @@ jobs: 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 diff --git a/package-lock.json b/package-lock.json index 77ebb0c..a18fbef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,31 @@ { "name": "@pylonide/treehugger", - "version": "0.1.0", - "lockfileVersion": 1, + "version": "0.2.0", + "lockfileVersion": 3, "requires": true, - "dependencies": { - "amd-loader": { + "packages": { + "": { + "name": "@pylonide/treehugger", + "version": "0.2.0", + "license": "MIT", + "devDependencies": { + "amd-loader": "~0.0.8", + "asyncjs": "~0.0.13" + }, + "engines": { + "node": ">= 18.18.2" + } + }, + "node_modules/amd-loader": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/amd-loader/-/amd-loader-0.0.8.tgz", "integrity": "sha1-ECKSgEDlZ+jmpvtYvaBS+BkYkgY=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.4.11" + } }, - "asyncjs": { + "node_modules/asyncjs": { "version": "0.0.13", "resolved": "https://registry.npmjs.org/asyncjs/-/asyncjs-0.0.13.tgz", "integrity": "sha512-ZwrkJ1zbf+LMmFKbb9DylLdcf30HaJ/6vxv/2Yx0Dt/aW8cxWlwNPlBsPB3WUnu9dpbVzjWgp6ix6DdnecUhwg==", diff --git a/package.json b/package.json index 61ada65..c3161ef 100644 --- a/package.json +++ b/package.json @@ -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. ", + "author": "Sten Feldman ", "license": "MIT", "contributors": [ + "ajax.org B.V. ", { "name": "Zef Hemel", "email": "zef@c9.io" @@ -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",