MCPcopy Create free account
hub / github.com/angular/dev-infra / _verifyPackageVersions

Function _verifyPackageVersions

ng-dev/release/publish/actions.ts:877–896  ·  view source on GitHub ↗

Verify the version of each generated package exact matches the specified version.

(version: semver.SemVer, packages: BuiltPackageWithInfo[])

Source from the content-addressed store, hash-verified

875 globalconfigPath: emptyNpmrcPath,
876 cacheDir: npmCacheDir,
877 extraEnv: {
878 NPM_CONFIG_PROVENANCE: 'false',
879 EXIT_GATE_AR_TOKEN: accessToken,
880 },
881 });
882
883 for (const {pkg, outputPath, version: pkgVersion} of resolvedPackages) {
884 Log.debug(`Staging "${pkg.name}@${pkgVersion}" to Artifact Registry for OSS Exit Gate.`);
885 const spinner = new Spinner(`Staging "${pkg.name}@${pkgVersion}" to Artifact Registry`);
886
887 try {
888 const alreadyStaged = await NpmCommand.checkVersionExists(
889 pkg.name,
890 pkgVersion,
891 arRegistryUrl,
892 tempDir,
893 publishEnv,
894 );
895 if (alreadyStaged) {
896 spinner.complete();
897 Log.info(
898 green(
899 ` ✓ "${pkg.name}@${pkgVersion}" is already staged in Artifact Registry. Reusing existing tarball.`,

Callers

nothing calls this directly

Calls 2

createExperimentalSemverFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected