Skip to content

Commit

Permalink
npm authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodcog committed Aug 21, 2023
1 parent dea6366 commit 35b75ee
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/locize-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@ jobs:
registry-url: 'https://registry.npmjs.org'
always-auth: true

- name: Setup Cognite CICD NPM
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Setup Cognite CICD Yarn
run: |
echo "
npmScopes:
cognite:
npmAlwaysAuth: true
npmAuthToken: \"\${NPM_TOKEN}\"
npmRegistryServer: "https://registry.npmjs.org"
" >> .yarnrc.yml
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Install NPM dependencies
working-directory: react-components
run: yarn install --immutable
Expand Down

0 comments on commit 35b75ee

Please sign in to comment.