Skip to content

Commit 5a6447d

Browse files
authored
prettier
1 parent c339b46 commit 5a6447d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

content/integrations/integrating-npm-with-external-services/using-private-packages-in-a-ci-cd-workflow.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ You can use access tokens to test private npm packages with continuous integrati
1111
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.
1212

1313
Trusted publishing is supported for:
14+
1415
- [GitHub Actions](https://github.com/features/actions) (GitHub-hosted runners)
1516
- [GitLab CI/CD](https://docs.gitlab.com/ci/pipelines/) (GitLab.com shared runners)
1617

content/packages-and-modules/securing-your-code/trusted-publishers.mdx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Self-hosted runners are not currently supported but are planned for future relea
2929

3030
### Step 1: Add a trusted publisher on npmjs.com
3131

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.
3333

3434
<Screenshot src="/packages-and-modules/securing-your-code/trusted-publisher.png" alt="Screenshot showing the Trusted Publisher section with Select your publisher label and provider buttons" />
3535

@@ -38,7 +38,7 @@ Navigate to your package settings on [npmjs.com](https://www.npmjs.com) and find
3838
Configure the following fields:
3939

4040
- **Organization or user** (required): Your GitHub username or organization name
41-
- **Repository** (required): Your repository name
41+
- **Repository** (required): Your repository name
4242
- **Workflow filename** (required): The filename of your workflow (e.g., `publish.yml`)
4343
- Enter only the filename, not the full path
4444
- Must include the `.yml` or `.yaml` extension
@@ -88,12 +88,12 @@ jobs:
8888
runs-on: ubuntu-latest
8989
steps:
9090
- uses: actions/checkout@v4
91-
91+
9292
- uses: actions/setup-node@v4
9393
with:
9494
node-version: '20'
9595
registry-url: 'https://registry.npmjs.org'
96-
96+
9797
# Ensure npm 11.5.0 or later is installed
9898
- name: Update npm
9999
run: npm install -g npm@latest
@@ -171,16 +171,19 @@ Provenance provides cryptographic proof of where and how your package was built,
171171
While we strongly recommend keeping provenance enabled, you can disable it if needed. Set the `provenance` option to `false` in any of these ways:
172172

173173
**Using environment variable:**
174+
174175
```bash
175176
NPM_CONFIG_PROVENANCE=false npm publish
176177
```
177178

178179
**In your `.npmrc` file:**
180+
179181
```ini
180182
provenance=false
181183
```
182184

183185
**In your `package.json`:**
186+
184187
```json
185188
{
186189
"publishConfig": {

0 commit comments

Comments
 (0)