diff --git a/.github/workflows/components-test-build-deploy.yaml b/.github/workflows/components-test-build-deploy.yaml index 97156be1869..2c67cce3851 100644 --- a/.github/workflows/components-test-build-deploy.yaml +++ b/.github/workflows/components-test-build-deploy.yaml @@ -195,6 +195,7 @@ jobs: with: node-version: '16' registry-url: 'https://registry.npmjs.org' + always-auth: true - name: 'install udev for usb-detection' run: sudo apt-get update && sudo apt-get install libudev-dev - name: 'cache yarn cache' @@ -223,7 +224,7 @@ jobs: json -I -f ./components/package.json -e "this.version=\"$VERSION_STRING\"" json -I -f ./components/package.json -e "this.dependencies['@opentrons/shared-data']=\"$VERSION_STRING\"" - name: 'publish to npm registry' - run: cd ./components && npm publish --provenace --access public + run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc && cd ./components && npm publish --provenace --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/shared-data-test-lint-deploy.yaml b/.github/workflows/shared-data-test-lint-deploy.yaml index fb8d4a2a41e..53cf3649c9d 100644 --- a/.github/workflows/shared-data-test-lint-deploy.yaml +++ b/.github/workflows/shared-data-test-lint-deploy.yaml @@ -228,6 +228,7 @@ jobs: with: node-version: '16' registry-url: 'https://registry.npmjs.org' + always-auth: true - name: 'cache yarn cache' uses: actions/cache@v3 with: @@ -253,7 +254,7 @@ jobs: VERSION_STRING=$(echo ${{ github.ref }} | sed -E 's/refs\/tags\/(components|shared-data)@//') json -I -f ./shared-data/package.json -e "this.version=\"$VERSION_STRING\"" - name: 'publish to npm registry' - run: cd ./shared-data && npm publish --provenace --access public + run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc && cd ./shared-data && npm publish --provenace --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}