Skip to content

Commit

Permalink
Update the registry and reset the workflow to previous version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Philippe Zolesio committed Jan 25, 2024
1 parent 030df01 commit 05e9e60
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
4 changes: 1 addition & 3 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion demo-react/app/.npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@adobe:registry=https://registry.npmjs.com/
@adobe:registry=https://registry.npmjs.org/
registry=https://registry.npmjs.org/
4 changes: 2 additions & 2 deletions demo-react/iframe/.npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@adobe:registry=https://registry.npmjs.com/
registry=https://registry.npmjs.org/
@adobe:registry=https://registry.npmjs.org/
registry=https://registry.npmjs.org/

0 comments on commit 05e9e60

Please sign in to comment.