From eb5edddf2fe847159c308fba314c5ad4f27df467 Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Sun, 28 Apr 2024 12:22:37 +0000 Subject: [PATCH] fix(master): final workflow fix --- .github/workflows/publish-release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 }}