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 }}

View File

@@ -1,5 +1,5 @@
{
"name": "@whiskeysockets/baileys",
"name": "baileys",
"version": "6.6.0",
"description": "WhatsApp API",
"keywords": [
@@ -77,7 +77,8 @@
"ts-jest": "^27.0.3",
"ts-node": "^10.8.1",
"typedoc": "^0.24.7",
"typescript": "^4.6.4"
"typescript": "^4.6.4",
"json": "^11.0.0"
},
"peerDependencies": {
"jimp": "^0.16.1",