Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: npm releases failing to generate provenance #3800

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

iliapolo
Copy link
Member

We are seeing the following error in NPM releases:

npm ERR! Can't generate provenance for new or private package, you must set `access` to public.

As of Feb 14, projen has started generating provenance statements for NPM releases (on by default for public packages).
It is not clear why we are seeing the failure above because access should be public by default for public packages.
My suspicion is that for the very first version of a package, access must be explicitly set. Trying this out.

Signed-off-by: epolon <epolon@amazon.com>
Signed-off-by: epolon <epolon@amazon.com>
@mergify mergify bot merged commit 119b5d4 into k8s-28/main Feb 28, 2024
13 checks passed
@mergify mergify bot deleted the epolon/set-publish-access branch February 28, 2024 17:42
cdk8s-automation pushed a commit that referenced this pull request Feb 28, 2024
We are [seeing](https://github.com/cdk8s-team/cdk8s-plus/actions/runs/8081657712/job/22080844284) the following error in NPM releases:

```console
npm ERR! Can't generate provenance for new or private package, you must set `access` to public.
```

As of Feb 14, projen [has started](projen/projen#3330) [generating provenance statements](https://docs.npmjs.com/generating-provenance-statements) for NPM releases (on by default for public packages).
It is not clear why we are seeing the failure above because `access` should be `public` by default for public packages.
My suspicion is that for the very first version of a package, `access` must be explicitly set. Trying this out.

(cherry picked from commit 119b5d4)
Signed-off-by: Eli Polonsky <epolon@amazon.com>
@cdk8s-automation
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
k8s-26/main
k8s-27/main

Questions ?

Please refer to the Backport tool documentation

cdk8s-automation pushed a commit that referenced this pull request Feb 28, 2024
We are [seeing](https://github.com/cdk8s-team/cdk8s-plus/actions/runs/8081657712/job/22080844284) the following error in NPM releases:

```console
npm ERR! Can't generate provenance for new or private package, you must set `access` to public.
```

As of Feb 14, projen [has started](projen/projen#3330) [generating provenance statements](https://docs.npmjs.com/generating-provenance-statements) for NPM releases (on by default for public packages).
It is not clear why we are seeing the failure above because `access` should be `public` by default for public packages.
My suspicion is that for the very first version of a package, `access` must be explicitly set. Trying this out.

(cherry picked from commit 119b5d4)
Signed-off-by: Eli Polonsky <epolon@amazon.com>
mergify bot pushed a commit that referenced this pull request Feb 28, 2024
# Backport

This will backport the following commits from `k8s-28/main` to `k8s-27/main`:
 - [fix: npm releases failing to generate provenance (#3800)](#3800)



### Questions ?
Please refer to the [Backport tool documentation](https://github.com/sqren/backport)
mergify bot pushed a commit that referenced this pull request Feb 28, 2024
# Backport

This will backport the following commits from `k8s-28/main` to `k8s-26/main`:
 - [fix: npm releases failing to generate provenance (#3800)](#3800)



### Questions ?
Please refer to the [Backport tool documentation](https://github.com/sqren/backport)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants