mirror of
https://github.com/zhigang1992/examples.git
synced 2026-01-12 09:03:42 +08:00
Post Publish Hooks Example
It's common to need to perform a set of tasks once you publish an update to your project. For example, you may want to notify people on Twitter or Slack, upload sourcemaps and cut a release on Sentry, etc. This example demonstrates how you can write your own simple hooks with ./hooks/echo.js, and install and use hooks distributed through npm, such as expo-prepublish-slack-notify.
🚀 How to use
Configure it
- Create an incoming webhook for your Slack server and replace
https://hooks.slack.com/put-your-stuff-hereinapp.config.jswith your webhook url -- or remove theexpo-postpublish-slack-notifyhook entirely fromapp.config.js.
Running the app
- Run
yarnornpm install - Run
expo start, try it out.