Files
spring-tools/concourse/tasks/publish-theia-releases.sh
2019-03-18 16:42:23 -04:00

28 lines
639 B
Bash
Executable File

#!/bin/bash
set -e
set -x
workdir=`pwd`
envsubst > ~/.npmrc << XXXXXX
//registry.npmjs.org/:_authToken=${npm_token}
XXXXXX
npm whoami
theia_tgz_files=`ls ${workdir}/s3-*-theia-*/theia-*.tgz`
for theia_tgz_file in $theia_tgz_files
do
echo "****************************************************************"
echo "*** Publishing : ${theia_tgz_file}"
echo "****************************************************************"
echo ""
echo "We are running the following command:"
echo ""
echo " npm publish ${theia_tgz_file} --access public"
echo ""
npm publish ${theia_tgz_file} --access public
done