@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.
@@ -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', '-v', '-m', manifest.version).exit.onerror()
13
+ spawnSync('git', 'commit', '-m', manifest.version).exit.onerror()
14
14
  spawnSync('git', 'tag', `v${manifest.version}`).exit.onerror()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm.e2e/testing-provenance2",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -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,