Skip to content

Commit

Permalink
Merge pull request #502 from folio-org/ankitasen-ubmainz-patch-1
Browse files Browse the repository at this point in the history
Update build-npm-release.yml
  • Loading branch information
ankitasen-ubmainz authored Jul 5, 2022
2 parents b3f6b03 + 896333c commit e8d3ea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
COMPILE_TRANSLATION_FILES: 'true'
PUBLISH_MOD_DESCRIPTOR: 'true'
FOLIO_NPM_REGISTRY: 'https://repository.folio.org/repository/npm-folio/'
FOLIO_NPM_REGISTRY_AUTH: '//repository.folio.org/repository/npm-folio/'
FOLIO_MD_REGISTRY: 'https://folio-registry.dev.folio.org'
NODEJS_VERSION: '16'
JEST_JUNIT_OUTPUT_DIR: 'artifacts/jest-junit'
Expand Down Expand Up @@ -215,7 +216,7 @@ jobs:
- name: Set _auth in .npmrc
run: |
npm config set @folio:registry $FOLIO_NPM_REGISTRY
npm config set _auth $NODE_AUTH_TOKEN
npm config set $FOLIO_NPM_REGISTRY_AUTH:_auth $NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
COMPILE_TRANSLATION_FILES: 'true'
PUBLISH_MOD_DESCRIPTOR: 'true'
FOLIO_NPM_REGISTRY: 'https://repository.folio.org/repository/npm-folioci/'
FOLIO_NPM_REGISTRY_AUTH: '//repository.folio.org/repository/npm-folio/'
FOLIO_MD_REGISTRY: 'https://folio-registry.dev.folio.org'
NODEJS_VERSION: '16'
JEST_JUNIT_OUTPUT_DIR: 'artifacts/jest-junit'
Expand Down Expand Up @@ -157,10 +158,9 @@ jobs:
always-auth: true

- name: Set _auth in .npmrc
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
run: |
npm config set @folio:registry $FOLIO_NPM_REGISTRY
npm config set _auth $NODE_AUTH_TOKEN
npm config set $FOLIO_NPM_REGISTRY_AUTH:_auth $NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down

0 comments on commit e8d3ea6

Please sign in to comment.