Skip to content

Commit 4f485e9

Browse files
committed
fix: add repository field to package.json for npm provenance
Add repository metadata to all published packages to fix trusted publishers provenance verification. npm requires repository.url in package.json to match the GitHub repository URL from the provenance attestation. Fixes E422 error: "Error verifying sigstore provenance bundle: Failed to validate repository information: package.json: \"repository.url\" is \"\", expected to match \"https://github.com/lingodotdev/lingo.dev\" from provenance"
1 parent 0b4be79 commit 4f485e9

File tree

7 files changed

+35
-0
lines changed

7 files changed

+35
-0
lines changed

packages/cli/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"version": "0.117.13",
44
"description": "Lingo.dev CLI",
55
"private": false,
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/lingodotdev/lingo.dev.git",
9+
"directory": "packages/cli"
10+
},
611
"publishConfig": {
712
"access": "public",
813
"provenance": true

packages/compiler/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"version": "0.8.6",
44
"description": "Lingo.dev Compiler",
55
"private": false,
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/lingodotdev/lingo.dev.git",
9+
"directory": "packages/compiler"
10+
},
611
"publishConfig": {
712
"access": "public",
813
"provenance": true

packages/locales/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"version": "0.3.1",
44
"description": "Lingo.dev locales",
55
"private": false,
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/lingodotdev/lingo.dev.git",
9+
"directory": "packages/locales"
10+
},
611
"publishConfig": {
712
"access": "public",
813
"provenance": true

packages/logging/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"version": "0.3.1",
44
"description": "Lingo.dev logging utilities with Pino",
55
"private": false,
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/lingodotdev/lingo.dev.git",
9+
"directory": "packages/logging"
10+
},
611
"publishConfig": {
712
"access": "public",
813
"provenance": true

packages/react/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"version": "0.7.3",
44
"description": "Lingo.dev React Kit",
55
"private": false,
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/lingodotdev/lingo.dev.git",
9+
"directory": "packages/react"
10+
},
611
"publishConfig": {
712
"access": "public",
813
"provenance": true

packages/sdk/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"version": "0.13.4",
44
"description": "Lingo.dev JS SDK",
55
"private": false,
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/lingodotdev/lingo.dev.git",
9+
"directory": "packages/sdk"
10+
},
611
"publishConfig": {
712
"access": "public",
813
"provenance": true

packages/spec/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"version": "0.44.4",
44
"description": "Lingo.dev open specification",
55
"private": false,
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/lingodotdev/lingo.dev.git",
9+
"directory": "packages/spec"
10+
},
611
"publishConfig": {
712
"access": "public",
813
"provenance": true

0 commit comments

Comments
 (0)