Skip to content

Commit 1d8b91d

Browse files
authored
Merge pull request #1738 from rundeck/chore-enable-cloudsmith
Enable cloudsmith in the project
2 parents c4d45c1 + e1f2f8d commit 1d8b91d

File tree

6 files changed

+2288
-2479
lines changed

6 files changed

+2288
-2479
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ workflows:
142142
- build:
143143
context:
144144
- slack-secrets
145+
- Cloudsmith
145146
filters:
146147
branches:
147148
only:

.github/workflows/snyk-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111

1212
env:
1313
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
14+
CLOUDSMITH_NPM_TOKEN: ${{ secrets.CLOUDSMITH_NPM_TOKEN }}
1415

1516
steps:
1617
- name: Checkout code

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
registry=https://npm.artifacts.pd-internal.com/npm/
2+
//npm.artifacts.pd-internal.com/npm/:_authToken=${CLOUDSMITH_NPM_TOKEN}
3+
legacy-peer-deps=true
4+

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,24 @@ npm install
2020

2121
>Note: It may be helpful to delete any existing `node_modules` folder and the `package-lock.json` file before running npm install.
2222
23+
## Cloudsmith Authentication Setup
24+
25+
#### For PagerDuty employees with Cloudsmith access
26+
27+
Export your Cloudsmith token before installing dependencies:
28+
29+
```bash
30+
export CLOUDSMITH_NPM_TOKEN=your-cloudsmith-token-here
31+
```
32+
33+
#### For contributors without Cloudsmith access
34+
35+
Delete the `.npmrc` file in the repository root:
36+
37+
```bash
38+
rm .npmrc
39+
```
40+
2341
# How To
2442

2543
## Run Locally for Development

0 commit comments

Comments
 (0)