Skip to content

Commit

Permalink
Merge pull request #9 from funbox/feature/node18
Browse files Browse the repository at this point in the history
Move to Node.js 18
  • Loading branch information
igoradamenko authored Jun 8, 2023
2 parents 10bd3cf + 686ea47 commit 1c4abe0
Show file tree
Hide file tree
Showing 5 changed files with 2,767 additions and 1,224 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,20 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci

# npm of 14.x is not compatible with lockfileVersion 3, that's why we use `install` here instead of `ci`
- if: matrix.node-version == '14.x'
run: npm install
- if: matrix.node-version != '14.x'
run: npm ci

- run: npm run build --if-present
- run: npm run lint
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14.18.0'
node-version: '18.15.0'
registry-url: 'https://registry.npmjs.org'
scope: '@funboxteam'
- run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs');
const path = require('path');
const fs = require('node:fs');
const path = require('node:path');

class RebuildInProgressPlugin {
constructor(filePath) {
Expand Down
Loading

0 comments on commit 1c4abe0

Please sign in to comment.