Skip to content

Clarify ESLint v9 is not supported yet #46

Clarify ESLint v9 is not supported yet

Clarify ESLint v9 is not supported yet #46

Workflow file for this run

name: GitHub Actions
on:
pull_request:
branches:
- main
types:
- opened
- edited
- reopened
- synchronize
push:
branches:
- main
release:
types:
- published
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14
- 16
- 18
- 20
- 21
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install # not `npm ci` since there is no package-lock.json in this project
- run: npm test
- name: Install this version of eslint-plugin-editorconfig
run: npm pack && npm install "eslint-plugin-editorconfig-$(jq --raw-output .version package.json).tgz"
if: 16 <= matrix.node-version
- run: npm run lint
if: 16 <= matrix.node-version
release:
needs: test
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install # not `npm ci` since there is no package-lock.json in this project
- name: set npm auth token
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
- run: npm run release