problem in github actions yml file

name: ISRO MISSION LAUNCH DASHBOARD CI

on:

push:

  branches: [ master ]

pull_request:

  branches: [ master ]  

jobs:

runs-on: ubuntu-latest

steps:

  - uses: actions/checkout@v2

  - name: Use Node.js version 16

    uses: actions/setup-node@v2

      with:

        node-version: '16'

  - run: npm install

  - run: npm run build --prefix client

Assuming the indentation is at least proportional to what you’re actually using, the problem is that with needs to be another attribute of the step, so it must be at the same indentation level as uses. Right now it sits where an attribute of uses would be, but uses is already a string, so it’s just invalid syntax.

In the future please use a Markdown code block (enclosed in triple backticks) when posting code to preserve the indentation. That’s particularly important for things like YAML or Python code where indentation is part of the syntax.

1 Like