Skip to content

Commit 553e8f6

Browse files
ShadowCat567Vieltojarvi
authored andcommitted
Update package.json files (#3032)
When attempting to publish packages from amplify backend using trusted publishing, this error was appearing: ``` error an error occurred while publishing @aws-amplify/backend-*: E422 422 Unprocessable Entity - PUT https://registry.npmjs.org/@aws-amplify%2fbackend-* - Error verifying sigstore provenance bundle: Failed to validate repository information: package.json: "repository.url" is "", expected to match "https://github.com/aws-amplify/amplify-backend" from provenance ``` Updated the `packge.json` files in all of our public packages to include: ``` "repository": { "type": "git", "url": "https://github.com/aws-amplify/amplify-backend.git" }, ``` to fix this error. _By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license._ --------- Co-authored-by: Vieltojarvi <lvielto@amazon.com>
1 parent 198d0c6 commit 553e8f6

File tree

25 files changed

+124
-0
lines changed

25 files changed

+124
-0
lines changed

.changeset/yummy-ways-shout.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
'@aws-amplify/deployed-backend-client': patch
3+
'@aws-amplify/backend-output-schemas': patch
4+
'@aws-amplify/backend-output-storage': patch
5+
'@aws-amplify/backend-deployer': patch
6+
'@aws-amplify/backend-function': patch
7+
'@aws-amplify/schema-generator': patch
8+
'@aws-amplify/backend-storage': patch
9+
'@aws-amplify/model-generator': patch
10+
'@aws-amplify/auth-construct': patch
11+
'@aws-amplify/backend-secret': patch
12+
'create-amplify': patch
13+
'@aws-amplify/form-generator': patch
14+
'@aws-amplify/ai-constructs': patch
15+
'@aws-amplify/client-config': patch
16+
'@aws-amplify/platform-core': patch
17+
'@aws-amplify/backend-auth': patch
18+
'@aws-amplify/backend-data': patch
19+
'@aws-amplify/plugin-types': patch
20+
'@aws-amplify/backend-ai': patch
21+
'@aws-amplify/cli-core': patch
22+
'@aws-amplify/backend': patch
23+
'@aws-amplify/sandbox': patch
24+
'ampx': patch
25+
'@aws-amplify/seed': patch
26+
---
27+
28+
adding repository to package.json configuration for trusted publishing

packages/ai-constructs/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"publishConfig": {
66
"access": "public"
77
},
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/aws-amplify/amplify-backend.git"
11+
},
812
"exports": {
913
".": {
1014
"types": "./lib/index.d.ts",

packages/ampx/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"publishConfig": {
66
"access": "public"
77
},
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/aws-amplify/amplify-backend.git"
11+
},
812
"exports": {
913
".": {
1014
"types": "./lib/index.d.ts",

packages/auth-construct/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"publishConfig": {
66
"access": "public"
77
},
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/aws-amplify/amplify-backend.git"
11+
},
812
"exports": {
913
".": {
1014
"types": "./lib/index.d.ts",

packages/backend-ai/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"publishConfig": {
66
"access": "public"
77
},
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/aws-amplify/amplify-backend.git"
11+
},
812
"exports": {
913
"./conversation": {
1014
"types": "./lib/conversation/index.d.ts",

packages/backend-auth/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"publishConfig": {
66
"access": "public"
77
},
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/aws-amplify/amplify-backend.git"
11+
},
812
"exports": {
913
".": {
1014
"types": "./lib/index.d.ts",

packages/backend-data/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"publishConfig": {
66
"access": "public"
77
},
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/aws-amplify/amplify-backend.git"
11+
},
812
"exports": {
913
".": {
1014
"types": "./lib/index.d.ts",

packages/backend-deployer/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"publishConfig": {
66
"access": "public"
77
},
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/aws-amplify/amplify-backend.git"
11+
},
812
"exports": {
913
".": {
1014
"types": "./lib/index.d.ts",

packages/backend-function/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"publishConfig": {
66
"access": "public"
77
},
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/aws-amplify/amplify-backend.git"
11+
},
812
"exports": {
913
".": {
1014
"types": "./lib/index.d.ts",

packages/backend-output-schemas/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"publishConfig": {
66
"access": "public"
77
},
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/aws-amplify/amplify-backend.git"
11+
},
812
"exports": {
913
".": {
1014
"types": "./lib/index.d.ts",

0 commit comments

Comments
 (0)