Skip to content

trigger github workflows #4

trigger github workflows

trigger github workflows #4

Workflow file for this run

name: Lint javascript files
on:
push:
branches-ignore:
- 'dependabot/**'
paths:
- 'package.json'
- '.eslintignore'
- '.eslintrc.yml'
- '.htmlhintrc'
- '**/*.js'
pull_request:
paths:
- 'package.json'
- '.eslintignore'
- '.eslintrc.yml'
- '.htmlhintrc'
- '**/*.js'
env:
NODE_VERSION: 18
jobs:
lint-js:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install latest nodejs
uses: actions/setup-node@v3
with:
cache: npm
node-version: ${{ env.NODE_VERSION }}
- name: Install npm dependencies
run: npm ci
node-version: ${{ env.NODE_VERSION }}

Check failure on line 40 in .github/workflows/lint-js.yml

View workflow run for this annotation

GitHub Actions / Lint javascript files

Invalid workflow file

The workflow is not valid. .github/workflows/lint-js.yml (Line: 40, Col: 9): Unexpected value 'node-version' .github/workflows/lint-js.yml (Line: 44, Col: 9): Unexpected value 'node-version'
- name: Install faster package manager
run: npm ci -g pnpm
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies from package.json
run: pnpm install
- name: Run lint specified in package.json
run: pnpm lint:js