Skip to content

Commit

Permalink
build: updating npm authentication tool
Browse files Browse the repository at this point in the history
  • Loading branch information
M3nin0 committed Apr 11, 2024
1 parent 470420a commit 1b5e610
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions docker/builder/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,28 @@ docker compose -f docker/builder/docker-compose.yml up -d
#

# installing utility tool to auth
npm install -g npm-cli-login
npm install -g npm-cli-adduser

# authenticating
npm-cli-login \
npm-cli-adduser \
-u $VERDACCIO_USERNAME \
-p $VERDACCIO_PASSWORD \
-e $VERDACCIO_EMAIL \
-r $VERDACCIO_LOCAL_REGISTRY

echo @geo-knowledge-hub:registry=${VERDACCIO_DOCKER_REGISTRY} > ~/.npmrc

#
# 3. Publishing JavaScript dependencies from `geo-components-react` to verdaccio
#

# build required dependencies
npm install -g rimraf json rollup

# registering the local registry
echo "@geo-knowledge-hub:registry=${VERDACCIO_DOCKER_REGISTRY}" >> ~/.npmrc

# configuring npm to be compatible with Node 16
echo "legacy-peer-deps=true" >> ~/.npmrc

# extract the dependencies from the `geo-knowledge-hub`
# note: `@geo-knowledge-hub` is the scope defined to the `geo-knowledge-hub` packages
JAVASCRIPT_DEPENDENCIES_VERSION=`cat package.json | grep -e @geo-knowledge-hub/ | tail -n 4 | head -n 2`
Expand Down

0 comments on commit 1b5e610

Please sign in to comment.