feat(fix-workflow): push to the 2 npm packages at the same time (#746)

This commit is contained in:
Rajeh Taher
2024-04-28 14:39:04 +03:00
committed by GitHub
parent 03f82f599e
commit 098908d05b
2 changed files with 12 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish in NPM
- name: Publish in NPM (as `baileys`)
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -79,3 +79,11 @@ jobs:
baileys.tgz
gzip: folders
allow_override: true
- name: Publish in NPM (whiskeysockets scope)
run: |
json -I -f package.json -e "this.name='@whiskeysockets/baileys'"
npm publish --access public
json -I -f package.json -e "this.name='baileys'"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}