Skip to content

Commit a9f8f73

Browse files
authored
Merge pull request #651 from aws-amplify/fix-postpublish-sync
fix: post publish sync between main and release
2 parents 0bb24d4 + b2f1f33 commit a9f8f73

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.codebuild/scripts/publish.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ if [ -z "$BRANCH_NAME" ]; then
44
echo "BRANCH_NAME is missing"
55
exit 1
66
else
7+
# These are more of an extra caution to make sure we have latest commits
8+
git checkout main
9+
git pull origin main
710
git checkout $BRANCH_NAME
8-
git pull
11+
git pull origin $BRANCH_NAME
912
git fetch --all
1013
yarn install
1114
git restore .

packages/amplify-codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "amplify-codegen",
33
"version": "4.1.7",
4-
"description": "Amplify Code generator",
4+
"description": "Amplify Code Generator",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/aws-amplify/amplify-codegen.git",

shared-scripts.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ function runE2eTest {
319319

320320
function _deploy {
321321
echo "Deploy"
322-
loadCacheFromBuildJob
323322
echo "Authenticate with NPM"
324323
PUBLISH_TOKEN=$(echo "$NPM_PUBLISH_TOKEN" | jq -r '.token')
325324
echo "//registry.npmjs.org/:_authToken=$PUBLISH_TOKEN" > ~/.npmrc

0 commit comments

Comments
 (0)