You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Document npm truster publishers
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Log when there is no npm token
* cleanup
* More cleanup
* specify with setup-node
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/source/get_started/making_release_from_releaser.md
+33-2Lines changed: 33 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,40 @@ already uses Jupyter Releaser.
49
49
50
50
</details>
51
51
52
-
- If the repo generates npm release(s), add access token for [npm](https://docs.npmjs.com/creating-and-viewing-access-tokens), saved as `NPM_TOKEN` in "Secrets".
52
+
- If the repo generates npm release(s), set up npm:
53
53
54
-
> If you want to set _provenance_ on your package, you need to ensure the publish release job as `permissions`: `id-token : write` (see the [documentation](https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions)).
- npm Trusted Publishers is supported with npm >= 11.5.1
57
+
58
+
- Ensure the publish release job has `permissions`: `id-token: write` (see the [documentation](https://docs.npmjs.com/generating-provenance-statements))
59
+
60
+
- Set up the Node.js version in your workflow using one of these approaches:
61
+
62
+
Using the `base-setup` action from `jupyterlab/maintainer-tools`:
- Create an access token for [npm](https://docs.npmjs.com/creating-and-viewing-access-tokens), saved as `NPM_TOKEN` in "Secrets"
83
+
- If you want to set _provenance_ on your package, you need to ensure the publish release job has `permissions`: `id-token: write`(see the [documentation](https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions))
Copy file name to clipboardExpand all lines: docs/source/how_to_guides/convert_repo_from_releaser.md
+34-3Lines changed: 34 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ See checklist below for details:
10
10
- Bump version configuration (if using Python), for example [tbump](https://github.com/dmerejkowsky/tbump)
11
11
-[Access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with access to target GitHub repo to run GitHub Actions.
12
12
- Access token for the [PyPI registry](https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#saving-credentials-on-github)
13
-
- If needed, access token for [npm](https://docs.npmjs.com/creating-and-viewing-access-tokens).
13
+
- If publishing to npm, we recommend using [npm Trusted Publishers](https://docs.npmjs.com/trusted-publishers) (requires npm >= 11.5.1, available via Node.js >= 24). Otherwise, create an access token for [npm](https://docs.npmjs.com/creating-and-viewing-access-tokens).
14
14
15
15
## Checklist for Adoption
16
16
@@ -54,9 +54,40 @@ A. Prep the `jupyter_releaser` fork:
54
54
55
55
</details>
56
56
57
-
-[ ]If needed, add access token for [npm](https://docs.npmjs.com/creating-and-viewing-access-tokens), saved as `NPM_TOKEN`.
57
+
-[ ]Set up npm (if publishing to npm):
58
58
59
-
> If you want to set _provenance_ on your package, you need to ensure the publish release job as `permissions`: `id-token : write` (see the [documentation](https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions)).
- npm Trusted Publishers is supported with npm >= 11.5.1
62
+
63
+
- Ensure the publish release job has `permissions`: `id-token: write` (see the [documentation](https://docs.npmjs.com/generating-provenance-statements))
64
+
65
+
- Set up the Node.js version in your workflow using one of these approaches:
66
+
67
+
Using the `base-setup` action from `jupyterlab/maintainer-tools`:
- Create an access token for [npm](https://docs.npmjs.com/creating-and-viewing-access-tokens), saved as `NPM_TOKEN`
88
+
- If you want to set _provenance_ on your package, you need to ensure the publish release job has `permissions`: `id-token: write`(see the [documentation](https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions))
0 commit comments