docs(ts/js): update GH action specification
Created by: matteo-hertel
Overview
This PR updates the GitHub Actions example to index a typescript and javascript repository in order to make it copy-pastable.
the -
in YAML is creating a new item in the list, and the current syntax was not behaving as expected, it ws creating a named step but not using the right base action.
with this proposed change the step will:
- have a name
- use a base action
- run the given command
GH Action docs relevant to this change here https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsuses