Skip to content

Commit

Permalink
chore(ci): use env for npm token
Browse files Browse the repository at this point in the history
  • Loading branch information
Jahed Ahmed committed Aug 31, 2021
1 parent b7c7c81 commit ca4123f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
14 changes: 1 addition & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ commands:
- run:
name: Install dependencies
command: npm ci
update_local_npmrc_linux:
description: Update local .npmrc file (Linux)
steps:
- run:
name: Update local .npmrc file (Linux)
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
build_ts:
description: Build js files from ts
steps:
Expand Down Expand Up @@ -183,9 +177,6 @@ jobs:
- install_deps
- attach_workspace:
at: ~/snyk
- run:
name: Update local .npmrc file (Windows)
command: echo "//registry.npmjs.org/:_authToken=$env:NPM_TOKEN" >> .npmrc
- run:
name: Add Snyk Token to Snyk Config
command: node ./bin/snyk config set "api=$env:SNYK_API_KEY"
Expand Down Expand Up @@ -249,7 +240,6 @@ jobs:
- run: sudo npm install -g [email protected]
- attach_workspace:
at: ~/snyk
- update_local_npmrc_linux
- install_deps
- run:
name: Add Snyk Token to Snyk Config
Expand Down Expand Up @@ -357,7 +347,6 @@ jobs:
- run:
name: Install osslsigncode
command: sudo apt-get install -y osslsigncode
- update_local_npmrc_linux
- install_deps
- attach_workspace:
at: ~/snyk
Expand All @@ -368,12 +357,11 @@ jobs:
name: Update package versions
command: ./release-scripts/update-versions.sh
- run:
name: Make git ignore changes relating to version updates and to .npmrc
name: Make git ignore changes relating to version updates
command: |
git update-index --skip-worktree -- ./lerna.json
git update-index --skip-worktree -- ./package.json
git update-index --skip-worktree -- ./packages/snyk-protect/package.json
git update-index --skip-worktree -- ./.npmrc
- run:
name: Lerna Publish
command: |
Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@snyk:registry=https://registry.npmjs.org
engine-strict=false
audit=false
fund=false

0 comments on commit ca4123f

Please sign in to comment.