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
Copy file name to clipboardExpand all lines: content/integrations/integrating-npm-with-external-services/using-private-packages-in-a-ci-cd-workflow.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ You can use access tokens to test private npm packages with continuous integrati
11
11
For publishing packages from CI/CD workflows, we recommend using [trusted publishing](/packages-and-modules/securing-your-code/trusted-publishers) instead of access tokens. Trusted publishing uses OpenID Connect (OIDC) to provide secure, token-free publishing that eliminates the security risks associated with long-lived tokens.
Copy file name to clipboardExpand all lines: content/packages-and-modules/securing-your-code/trusted-publishers.mdx
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Self-hosted runners are not currently supported but are planned for future relea
29
29
30
30
### Step 1: Add a trusted publisher on npmjs.com
31
31
32
-
Navigate to your package settings on [npmjs.com](https://www.npmjs.com) and find the "__Trusted Publisher__" section. Under "__Select your publisher__", choose your CI/CD provider by clicking either the GitHub Actions or GitLab CI/CD button.
32
+
Navigate to your package settings on [npmjs.com](https://www.npmjs.com) and find the "**Trusted Publisher**" section. Under "**Select your publisher**", choose your CI/CD provider by clicking either the GitHub Actions or GitLab CI/CD button.
33
33
34
34
<Screenshotsrc="/packages-and-modules/securing-your-code/trusted-publisher.png"alt="Screenshot showing the Trusted Publisher section with Select your publisher label and provider buttons" />
35
35
@@ -38,7 +38,7 @@ Navigate to your package settings on [npmjs.com](https://www.npmjs.com) and find
38
38
Configure the following fields:
39
39
40
40
-**Organization or user** (required): Your GitHub username or organization name
41
-
-**Repository** (required): Your repository name
41
+
-**Repository** (required): Your repository name
42
42
-**Workflow filename** (required): The filename of your workflow (e.g., `publish.yml`)
43
43
- Enter only the filename, not the full path
44
44
- Must include the `.yml` or `.yaml` extension
@@ -88,12 +88,12 @@ jobs:
88
88
runs-on: ubuntu-latest
89
89
steps:
90
90
- uses: actions/checkout@v4
91
-
91
+
92
92
- uses: actions/setup-node@v4
93
93
with:
94
94
node-version: '20'
95
95
registry-url: 'https://registry.npmjs.org'
96
-
96
+
97
97
# Ensure npm 11.5.0 or later is installed
98
98
- name: Update npm
99
99
run: npm install -g npm@latest
@@ -171,16 +171,19 @@ Provenance provides cryptographic proof of where and how your package was built,
171
171
While we strongly recommend keeping provenance enabled, you can disable it if needed. Set the `provenance` option to `false` in any of these ways:
0 commit comments