Dev Setup for NCIDS Mono Repo - NCIOCPL/ncids GitHub Wiki
Follow instructions at https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating
- Do not install nvm or node any other way. DO NOT install with Brew.
If the repository has a .nvmrc
file, you may:
cd <repo_root>
nvm install
nvm use
Step 3: Install pnpm
npm install -g pnpm
Step 4: Install Lerna
npm install -g lerna@~8.1.2
Follow the instructions at https://brew.sh/
Step 6: Install gh
brew install gh
-
Create your personal access token Follow the steps outlined in GitHub’s documentation for creating a personal access token. Ensure that, at a minimum, the required scopes are set to “repo,” “read:org,” and “workflow.”
-
Authenticate with GitHub Run the following command to authenticate with GitHub using the GitHub CLI:
gh auth login
-
Log in to the @NCIOCPL Organizational Scope on npm Run the following command to log in to npm with the organizational scope and using the GitHub npm registry:
npm login --scope=@NCIOCPL --registry=https://npm.pkg.github.com
Note: You must use the personal access token generated in step 1 as your password.
git clone https://github.com/NCIOCPL/ncids.git
- now go into the directory
cd ncids/
nvm use
pnpm install
Now you can start editing and doing work on NCIDS.
- Note your first push to a repo might ask you to visit a SSO page for NCI/CBIIT - copy the url from the terminal window and paste into a browser.
pnpm clean:node_modules
pnpm install
- Try again, then phone a friend.
-
Download hub
brew install hub
-
Follow the steps for publishing
If you experience a bad credentials warning trying to do a release, update your token at ~/.config/hub