File tree Expand file tree Collapse file tree 6 files changed +2288
-2479
lines changed
Expand file tree Collapse file tree 6 files changed +2288
-2479
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ workflows:
142142 - build :
143143 context :
144144 - slack-secrets
145+ - Cloudsmith
145146 filters :
146147 branches :
147148 only :
Original file line number Diff line number Diff line change 1111
1212 env :
1313 SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
14+ CLOUDSMITH_NPM_TOKEN : ${{ secrets.CLOUDSMITH_NPM_TOKEN }}
1415
1516 steps :
1617 - name : Checkout code
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments