build reactjs website using yarn and notify (Slack/Telegram) to user when building done
npm install @chaunnt/reactjs_buildpackageandnotify.env
#example: Project A
PROJECT_NAME=
#example: 202211230508 (YYYYMMDDHHmm)
REACT_APP_BUILD_VERSION=
#example: #build_notify
SLACK_CHANNEL=
#example: https://.......
SLACK_HOOK_URL=
#example: 235123634:3454 (visit BotFather for detail)
TELEGRAM_BOT_TOKEN=
#example: @BuildNotify
TELEGRAM_CHAT_ID=
#example: 2143124
PASTE_BIN_API_KEY=
`
setup
install package
npm install --save @chaunnt/reactjs_buildpackageandnotify or yarn add @chaunnt/reactjs_buildpackageandnotifyadd this command to your
package.json
`
"scripts": {
"autobuild": "npx @chaunnt/reactjs_buildpackageandnotify"
},
`
sample
run command npm run autobuild`