From 05e9e603c3ca699557f525620430af268dd90bd4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Zolesio Date: Thu, 25 Jan 2024 14:07:09 -0800 Subject: [PATCH] Update the registry and reset the workflow to previous version --- .github/workflows/npm-publish.yml | 29 +++++++++++++++-------------- .npmrc | 4 +--- demo-react/app/.npmrc | 2 +- demo-react/iframe/.npmrc | 4 ++-- 4 files changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 3d04d232..40bd128f 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -20,17 +20,18 @@ jobs: - run: (cd demo-react/app; yarn install) - run: (cd demo-react/iframe; yarn install) - run: yarn run test -- --headless - - name: Check what user is logged in - run: npm whoami - env: - # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} - - name: Publish package on NPM 📦 - run: npm whoami && npm whoami && npm publish --dry-run && npm publish --verbose - env: - # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} - # - uses: JS-DevTools/npm-publish@v3 - # with: - # token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} - # access: 'public' + # - name: Check what user is logged in + # run: npm whoami + # env: + # # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + # NODE_AUTH_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} + # - name: Publish package on NPM 📦 + # run: npm whoami && npm whoami && npm publish --dry-run && npm publish --verbose + # env: + # # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + # NODE_AUTH_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} + - run: yarn run build + - uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} + access: 'public' diff --git a/.npmrc b/.npmrc index 656cc231..596b1d86 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,2 @@ -@adobe:registry=https://registry.npmjs.com/ +@adobe:registry=https://registry.npmjs.org/ registry=https://registry.npmjs.org/ -//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN} -always-auth=true \ No newline at end of file diff --git a/demo-react/app/.npmrc b/demo-react/app/.npmrc index 8ac8f734..fd2ca007 100644 --- a/demo-react/app/.npmrc +++ b/demo-react/app/.npmrc @@ -1,2 +1,2 @@ -@adobe:registry=https://registry.npmjs.com/ +@adobe:registry=https://registry.npmjs.org/ registry=https://registry.npmjs.org/ \ No newline at end of file diff --git a/demo-react/iframe/.npmrc b/demo-react/iframe/.npmrc index 8ac8f734..596b1d86 100644 --- a/demo-react/iframe/.npmrc +++ b/demo-react/iframe/.npmrc @@ -1,2 +1,2 @@ -@adobe:registry=https://registry.npmjs.com/ -registry=https://registry.npmjs.org/ \ No newline at end of file +@adobe:registry=https://registry.npmjs.org/ +registry=https://registry.npmjs.org/