diff --git a/.github/workflows/components-test-build-deploy.yaml b/.github/workflows/components-test-build-deploy.yaml index 310aa366c61..a4d8e038538 100644 --- a/.github/workflows/components-test-build-deploy.yaml +++ b/.github/workflows/components-test-build-deploy.yaml @@ -175,6 +175,7 @@ jobs: - uses: 'actions/setup-node@v3' with: node-version: '16' + registry-url: 'https://registry.npmjs.org' - name: 'cache yarn cache' uses: actions/cache@v3 with: @@ -200,13 +201,8 @@ jobs: VERSION_STRING=$(echo ${{ github.ref }} | sed 's/refs\/tags\/components@//') 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\"" - cd ./components - - uses: 'actions/setup-node@v3' - with: - node-version: '16' - registry-url: 'https://registry.npmjs.org' - name: 'publish to npm registry' - run: npm publish --access public + run: cp ./.npmrc ./components/.npmrc && cd ./components && npm publish --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 23dff092618..76dad4814de 100644 --- a/.github/workflows/shared-data-test-lint-deploy.yaml +++ b/.github/workflows/shared-data-test-lint-deploy.yaml @@ -257,7 +257,7 @@ jobs: node-version: '16' registry-url: 'https://registry.npmjs.org' - name: 'publish to npm registry' - run: npm publish --access public + run: cp ./.npmrc ./shared-data/.npmrc && cd ./shared-data && npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}