File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 99# Go to the project root directory
1010cd $( dirname ${0} ) /../..
1111
12+ if [ -z ${MATERIAL2_BUILDS_TOKEN} ]; then
13+ echo " Error: No access token for GitHub could be found." \
14+ " Please set the environment variable 'MATERIAL2_BUILDS_TOKEN'."
15+ exit 1
16+ fi
17+
1218# Material packages that need to published.
1319PACKAGES=(cdk material)
1420REPOSITORIES=(cdk-builds material2-builds)
@@ -24,7 +30,7 @@ publishPackage() {
2430 packageRepo=${2}
2531
2632 buildDir=" dist/releases/${packageName} "
27- buildVersion=$( sed -nE ' s/^\s*"version": "(.*?)",$/\1/p ' package.json)
33+ buildVersion=$( node -pe " require('./ package.json').version " )
2834
2935 commitSha=$( git rev-parse --short HEAD)
3036 commitAuthorName=$( git --no-pager show -s --format=' %an' HEAD)
@@ -72,7 +78,7 @@ publishPackage() {
7278 git tag " ${buildVersion} -${commitSha} "
7379 git push origin master --tags
7480
75- echo " Published artifacts for ${packageName} package ."
81+ echo " Published package artifacts for ${packageName} # ${commitSha} ."
7682}
7783
7884for (( i = 0 ; i < ${# PACKAGES[@]} ; i++ )) ; do
Original file line number Diff line number Diff line change 88
99cd " $( dirname $0 ) /../../"
1010
11+ if [ -z ${MATERIAL2_DOCS_CONTENT_TOKEN} ]; then
12+ echo " Error: No access token for GitHub could be found." \
13+ " Please set the environment variable 'MATERIAL2_DOCS_CONTENT_TOKEN'."
14+ exit 1
15+ fi
16+
1117docsPath=" ./dist/docs"
1218packagePath=" ./dist/releases/material-examples"
1319repoPath=" /tmp/material2-docs-content"
You can’t perform that action at this time.
0 commit comments