@pnpm.e2e/testing-provenance2 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bump-version-and-tag.js +1 -1
- package/package.json +1 -1
- package/pnpm-dist/pnpm.mjs +7 -0
package/bump-version-and-tag.js
CHANGED
|
@@ -10,5 +10,5 @@ fs.writeFileSync(
|
|
|
10
10
|
JSON.stringify(manifest, undefined, 2) + '\n',
|
|
11
11
|
)
|
|
12
12
|
spawnSync('git', 'add', '-v', './package.json').exit.onerror()
|
|
13
|
-
spawnSync('git', 'commit', '-
|
|
13
|
+
spawnSync('git', 'commit', '-m', manifest.version).exit.onerror()
|
|
14
14
|
spawnSync('git', 'tag', `v${manifest.version}`).exit.onerror()
|
package/package.json
CHANGED
package/pnpm-dist/pnpm.mjs
CHANGED
|
@@ -215357,6 +215357,13 @@ function extractToken({ token, tokenHelper }) {
|
|
|
215357
215357
|
async function addAuthTokenByOidcIfApplicable(targetPublishOptions, packageName, registry, options) {
|
|
215358
215358
|
if (!options.provenance || targetPublishOptions.token != null || targetPublishOptions.username && targetPublishOptions.password)
|
|
215359
215359
|
return;
|
|
215360
|
+
if (options.provenance) {
|
|
215361
|
+
console.log("PROVENANCE", {
|
|
215362
|
+
packageName,
|
|
215363
|
+
registry
|
|
215364
|
+
});
|
|
215365
|
+
throw new Error("PROVENANCE IS TRUE, AS EXPECTED!!");
|
|
215366
|
+
}
|
|
215360
215367
|
try {
|
|
215361
215368
|
targetPublishOptions.token = await oidc({
|
|
215362
215369
|
options,
|