Building and contributing to this repo requires the following dependencies:
We recommend using VS Code for development.
We use yarn with Zero Install as required so that GitHub Actions can execute the action defined in this repo immediately, since no package restore step is allowed to precede execution of a GitHub Action.
Set up VS Code to work with yarn's Zero Install mode by following these instructions (source):
- Press Ctrl+Shift+P in a TypeScript file
- Choose "Select TypeScript Version"
- Pick "Use Workspace Version"
Also note this caveat and vote up 👍 this issue 👍.
Important: Do not use npm
to install packages.
yarn build
Note: If you get "'rm' is not recognized..." error from powershell, try add "C:\Program Files\Git\usr\bin" or a directory pointing to a "rm.exe" to your PATH.
-
Set these environment variables.
$env:GITHUB_REPOSITORY='microsoft/RichCodeNavIndexer' $env:INPUT_ENVIRONMENT='production' $env:RUNNER_TEMP="$env:TEMP/githubSimulation"
-
Run
node lib/main.js
Set these two secret variables in a GitHub repo to enable debug logging within its github workflows:
Secret | Value |
---|---|
ACTIONS_RUNNER_DEBUG |
true |
ACTIONS_STEP_DEBUG |
true |
See more in Action Debugging.