Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
- v1-dependencies-{{arch}}-{{ checksum "package.json" }}
- v1-dependencies-{{arch}}-

- run:
name: Verify Socket Firewall registry is active
command: |
REGISTRY=$(npm config get registry)
echo "npm registry: $REGISTRY"
echo "$REGISTRY" | grep -q socket-firewall-registry || { echo "FAIL: npm not routed through Socket Firewall"; exit 1; }

- run: yarn install

- save_cache:
Expand All @@ -40,4 +47,6 @@ workflows:

test:
jobs:
- test
- test:
context:
- socket-firewall
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Route all npm/yarn installs through the Socket Firewall registry
registry=https://socket-firewall-registry.corporate.intercom.io/npm
//socket-firewall-registry.corporate.intercom.io/npm/:_authToken=${SOCKET_NPM_TOKEN}
always-auth=true