-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-api-plugin-stable' into feature/gen1-migration
- Loading branch information
Showing
117 changed files
with
1,070 additions
and
17,028 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,3 @@ | |
|
||
|
||
yarn-path ".yarn/releases/yarn-1.18.0.cjs" | ||
registry "https://registry.yarnpkg.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash -e | ||
|
||
REGISTRY="https://registry.npmjs.org" | ||
PACKAGE_NAME="amplify-category-api" | ||
NEW_TAG="latest" | ||
RETRIES=30 | ||
DELAY=60 # 1 minute delay between retries | ||
|
||
# Read package name and version from package.json | ||
PACKAGE_MANIFEST_PATH="packages/$PACKAGE_NAME/package.json" | ||
PACKAGE_NAME=$(jq -r '.name' "$PACKAGE_MANIFEST_PATH") | ||
PACKAGE_VERSION=$(jq -r '.version' "$PACKAGE_MANIFEST_PATH") | ||
|
||
# Validate package name and version | ||
if [ -z "$PACKAGE_NAME" ] || [ -z "$PACKAGE_VERSION" ]; then | ||
echo "Unable to read package name or version from package.json." | ||
exit 1 | ||
fi | ||
echo "Using package: $PACKAGE_NAME, version: $PACKAGE_VERSION" | ||
|
||
# Sets the "NEW_TAG" tag to the specified version | ||
update_dist_tag() { | ||
# Check if the version is available on npm | ||
if npm view $PACKAGE_NAME@$PACKAGE_VERSION > /dev/null 2>&1; then | ||
echo "Version $PACKAGE_VERSION of package $PACKAGE_NAME is available." | ||
# Add the dist-tag | ||
npm dist-tag add $PACKAGE_NAME@$PACKAGE_VERSION $NEW_TAG --registry $REGISTRY | ||
return $? | ||
else | ||
echo "Version $PACKAGE_VERSION of package $PACKAGE_NAME is not available yet." | ||
return 1 | ||
fi | ||
} | ||
|
||
# Retry loop | ||
for (( i=1; i<=$RETRIES; i++ )) | ||
do | ||
echo "Attempt $i to update dist-tag..." | ||
if update_dist_tag; then | ||
echo "Successfully updated the $NEW_TAG tag to version $PACKAGE_VERSION." | ||
exit 0 | ||
else | ||
echo "Failed to update dist-tag. Retrying in $DELAY seconds..." | ||
sleep $DELAY | ||
fi | ||
done | ||
|
||
echo "Failed to update the dist-tag after $RETRIES attempts." | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [5.12.7](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-09-09) | ||
|
||
**Note:** Version bump only for package @aws-amplify/amplify-category-api | ||
|
||
## [5.12.6](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-08-12) | ||
|
||
**Note:** Version bump only for package @aws-amplify/amplify-category-api | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [4.9.2](https://github.com/aws-amplify/amplify-category-api/compare/amplify-category-api-e2e-core@[email protected]) (2024-09-09) | ||
|
||
**Note:** Version bump only for package amplify-category-api-e2e-core | ||
|
||
## [4.8.6](https://github.com/aws-amplify/amplify-category-api/compare/amplify-category-api-e2e-core@[email protected]) (2024-08-12) | ||
|
||
**Note:** Version bump only for package amplify-category-api-e2e-core | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [3.22.12](https://github.com/aws-amplify/amplify-category-api/compare/amplify-category-api-e2e-tests@[email protected]) (2024-09-09) | ||
|
||
**Note:** Version bump only for package amplify-category-api-e2e-tests | ||
|
||
## [3.22.9](https://github.com/aws-amplify/amplify-category-api/compare/amplify-category-api-e2e-tests@[email protected]) (2024-08-12) | ||
|
||
**Note:** Version bump only for package amplify-category-api-e2e-tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [3.6.6](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-09-09) | ||
|
||
**Note:** Version bump only for package @aws-amplify/graphql-auth-transformer | ||
|
||
## [3.6.5](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-08-12) | ||
|
||
**Note:** Version bump only for package @aws-amplify/graphql-auth-transformer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [2.3.14](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-09-09) | ||
|
||
**Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer | ||
|
||
## [2.3.13](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-08-12) | ||
|
||
**Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [2.1.27](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-09-09) | ||
|
||
**Note:** Version bump only for package @aws-amplify/graphql-function-transformer | ||
|
||
## [2.1.26](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-07-15) | ||
|
||
**Note:** Version bump only for package @aws-amplify/graphql-function-transformer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [2.1.27](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-09-09) | ||
|
||
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer | ||
|
||
## [2.1.26](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-07-15) | ||
|
||
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [2.4.10](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-09-09) | ||
|
||
**Note:** Version bump only for package @aws-amplify/graphql-index-transformer | ||
|
||
## [2.4.9](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2024-08-12) | ||
|
||
**Note:** Version bump only for package @aws-amplify/graphql-index-transformer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.