Skip to content

Fix yml error

Fix yml error #81

Workflow file for this run

name: Node.js CI

Check failure on line 1 in .github/workflows/nodejs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/nodejs.yml

Invalid workflow file

(Line: 16, Col: 7): 'run' is already defined
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
run: |
npm install
npm run build --if-present
npm test
env:
CI: true