mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat(fix-workflow): push to the 2 npm packages at the same time (#746)
This commit is contained in:
10
.github/workflows/publish-release.yml
vendored
10
.github/workflows/publish-release.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user