Skip to content

Commit

Permalink
build: update to node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
onebytegone committed May 2, 2024
1 parent 1df1370 commit f798568
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm i -g npm@8.5.5
- run: npm i -g npm@10.5.0
- run: npm ci
- run: npm run standards
test:
Expand All @@ -23,15 +23,15 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [ 12, 14, 16, 'lts/*', 'latest' ]
node-version: [ 16, 20, 'lts/*', 'latest' ]
steps:
- uses: actions/checkout@v3
-
name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g npm@8.5.5
- run: npm i -g npm@10.5.0
- run: npm ci # Reinstall the dependencies to ensure they install with the current version of node
- run: npm test
- name: Coveralls
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.15.0
20.12.2
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"module": "./dist/esm/index",
"scripts": {
"prepare": "grunt build",
"test:node-version": "check-node-version --npm 8.5.5 --print",
"test:node-version": "check-node-version --npm 10.5.0 --print",
"test": "npm run test:node-version && TS_NODE_PROJECT='tests/tsconfig.json' TS_NODE_FILES=true nyc mocha --opts ./.mocha.opts",
"eslint": "eslint '{,!(node_modules|dist)/**/}*.{js,ts}'",
"markdownlint": "markdownlint -c .markdownlint.json -i CHANGELOG.md '{,!(node_modules)/**/}*.md'",
Expand Down

0 comments on commit f798568

Please sign in to comment.