Skip to content

Commit e563e57

Browse files
committed
Add Github registry to config
1 parent 409e864 commit e563e57

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scripts/datasheet-rendering/render-datasheets.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ IF %ERRORLEVEL% NEQ 0 (
99
cls
1010

1111
::Only install the modules if npm list return an Error
12-
npm list --depth=0 || npm install && cls && ECHO Modules installed
12+
npm list --depth=0 || npm config set @arduino:registry https://npm.pkg.github.com && npm install && cls && ECHO Modules installed
1313

1414
:: argument %* only used with "Current directory" option
1515
npx datasheet-renderer config.json %*

scripts/datasheet-rendering/render-datasheets.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if [ -n "$RENDER_DATASHEETS" ]; then
2323
apt-get -qq install -y -o=Dpkg::Use-Pty=0 ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils
2424

2525
echo "Running on Node version: `node -v`"
26+
npm config set @arduino:registry https://npm.pkg.github.com
2627
npm install
2728
npx datasheet-renderer config.json
2829
exit 0
@@ -46,6 +47,7 @@ npm list --depth=0 > /dev/null 2>&1
4647

4748
if [ $? -ne 0 ]; then
4849
echo "Installing node modules..."
50+
npm config set @arduino:registry https://npm.pkg.github.com
4951
npm install
5052
fi
5153

0 commit comments

Comments
 (0)