diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index fb9894c..af274de 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -9,17 +9,11 @@ on: jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: - - 14.x - - 16.x steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version-file: .nvmrc + cache: 'npm' - run: npm ci - - run: npm run build --if-present - run: npm test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e707e2a..17a062e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,10 +8,11 @@ jobs: name: Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: lts/* + node-version-file: .nvmrc + cache: 'npm' - run: npm ci - env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..3f430af --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18 diff --git a/package.json b/package.json index ace90ce..2ddf29a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "repository": "sapegin/textlint-rule-stop-words", "license": "MIT", "engines": { - "node": ">=14" + "node": ">=18" }, "main": "index.js", "files": [