diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 6a8a367..eed4ac0 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -48,6 +48,14 @@ jobs: run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Publish in NPM (whiskeysockets scope) + run: | + npx json -I -f package.json -e "this.name='@whiskeysockets/baileys'" + npm publish --access public --//registry.npmjs.org/:_authToken=$NPM_TOKEN + npx json -I -f package.json -e "this.name='baileys'" + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Generate Changelog id: generate_changelog @@ -79,11 +87,3 @@ jobs: baileys.tgz gzip: folders allow_override: true - - - name: Publish in NPM (whiskeysockets scope) - run: | - npx json -I -f package.json -e "this.name='@whiskeysockets/baileys'" - npm publish --access public - npx json -I -f package.json -e "this.name='baileys'" - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}