Skip to content

Commit

Permalink
Install Github Package Token
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Dec 12, 2024
1 parent bfcceba commit ab1e2b6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
key: figgy-{{ checksum "Gemfile.lock" }}-{{ checksum "yarn.lock" }}-20241209
paths:
- ./vendor/bundle
- run:
name: Configure Mapnik repository
command: "npm config set //npm.pkg.github.com:_authToken ${GITHUB_PACKAGE_TOKEN} && npm config set @mapnik:registry https://npm.pkg.github.com"
- run:
name: Install NPM Dependencies via Yarn
command: yarn install --frozen-lockfile
Expand Down
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

6 changes: 6 additions & 0 deletions bin/setup_credentials
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ def sidekiq_pro_credentials
content.split("=").last
end

def github_npm_token
`lpass show "Shared-ITIMS-Passwords/DLS/github-npm-package-token" --notes`
end

`bundle config gems.contribsys.com #{sidekiq_pro_credentials}`
`npm config set //npm.pkg.github.com:_authToken #{github_npm_token}`
`npm config set @mapnik:registry https://npm.pkg.github.com`

0 comments on commit ab1e2b6

Please sign in to comment.