Skip to content

Commit b89bc86

Browse files
authored
Merge pull request #656 from aws-amplify/prod-build
build: add build packages before release
2 parents 119fe97 + 806944d commit b89bc86

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.codebuild/scripts/publish.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ else
1212
git fetch --all
1313
yarn install
1414
git restore .
15+
yarn production-build
1516
fi
1617

1718
if [ -z "$GITHUB_EMAIL" ]; then
@@ -51,4 +52,4 @@ if [[ "$BRANCH_NAME" =~ ^tagged-release ]]; then
5152
fi
5253
else
5354
yarn publish:$BRANCH_NAME
54-
fi
55+
fi

shared-scripts.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,10 @@ function runE2eTest {
318318
}
319319

320320
function _deploy {
321+
_setShell
321322
echo "Deploy"
322323
echo "Authenticate with NPM"
323324
PUBLISH_TOKEN=$(echo "$NPM_PUBLISH_TOKEN" | jq -r '.token')
324325
echo "//registry.npmjs.org/:_authToken=$PUBLISH_TOKEN" > ~/.npmrc
325326
./.codebuild/scripts/publish.sh
326-
}
327+
}

0 commit comments

Comments
 (0)