From b5aa343280e3095d2f9212d5f1a350ffb8775a1c Mon Sep 17 00:00:00 2001 From: Fernando Alonso Pecina Date: Thu, 22 Oct 2026 22:48:52 +0000 Subject: [PATCH] ci: migrate npm publishing configuration from Wombat to OSS Exit Gate --- .npmrc | 1 + package.json | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..ea9d429 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +//us-npm.pkg.dev/oss-exit-gate-prod/react-schemaorg--npm/:always-auth=true diff --git a/package.json b/package.json index a35f777..06cf83c 100644 --- a/package.json +++ b/package.json @@ -53,10 +53,15 @@ "fix": "prettier --write \"src/**/*\" \"test/**/*\" \"type-test/**/*\"", "test": "npm run lint && tsc --build type-test/ && jest", "build": "tsc --build .", - "prepare": "npm run build" + "prepare": "npm run build", + "release:exit-gate": "npx --yes google-artifactregistry-auth --repo-config=.npmrc --credential-config=$HOME/.npmrc && npm publish && VERSION=$(node -p \"require('./package.json').version\") && printf '{\"publish_all\":false,\"publishing_groups\":[{\"packages\":[{\"name\":\"react-schemaorg\",\"version\":\"%s\"}]}]}\\n' \"$VERSION\" > /tmp/react-schemaorg-manifest-$VERSION.json && gcloud storage cp /tmp/react-schemaorg-manifest-$VERSION.json gs://oss-exit-gate-prod-projects-bucket/react-schemaorg/npm/manifests/manifest-$VERSION-$(date +%s).json" }, "homepage": "https://github.com/google/react-schemaorg#readme", "bugs": "https://github.com/google/react-schemaorg/issues", "repository": "github:google/react-schemaorg", - "license": "Apache-2.0" + "license": "Apache-2.0", + "publishConfig": { + "access": "public", + "registry": "https://us-npm.pkg.dev/oss-exit-gate-prod/react-schemaorg--npm/" + } }