diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml new file mode 100644 index 0000000..6fea527 --- /dev/null +++ b/.github/workflows/pr-comment.yml @@ -0,0 +1,36 @@ +name: PR Comment + +on: + pull_request_target: + types: + - opened + - synchronize + - reopened + - unlocked + +jobs: + pr-comment: + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: write-all + steps: + - uses: actions/checkout@v3 + + - uses: mshick/add-pr-comment@v2 + with: + repo-token: ${{ secrets.PERSONAL_TOKEN}} + message-id: pr-test + message: | + Thanks for your contribution. + + The next step is to wait for review and approval to merge it to main repository + + The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it. + + To test this PR you can run the following command below: + ``` + # NPM + npm install @whiskeysockets/baileys@${{ github.event.pull_request.head.repo.full_name }}#${{ github.event.pull_request.head.ref }} + # YARN v2 + yarn add @whiskeysockets/baileys@${{ github.event.pull_request.head.repo.full_name }}#${{ github.event.pull_request.head.ref }} + ``` diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index d15b233..5f36679 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "gen:protobuf": "sh WAProto/GenerateStatics.sh", "lint": "eslint . --ext .js,.ts,.jsx,.tsx", "lint:fix": "eslint . --fix --ext .js,.ts,.jsx,.tsx", + "prepack": "tsc", "prepare": "tsc", "release": "release-it", "test": "jest"