Files
examples/with-postpublish-hooks
2020-01-16 18:56:24 -08:00
..
2017-05-03 19:38:11 -07:00
2017-05-03 19:38:11 -07:00
2019-10-02 10:43:08 -07:00
2019-10-02 10:43:08 -07:00
2019-10-02 10:43:08 -07:00
2019-10-02 10:43:08 -07:00

postPublish hooks

How to use

Configure it

  • Create an incoming webhook for your Slack server and replace https://hooks.slack.com/put-your-stuff-here in app.json with your webhook url -- or remove the expo-postpublish-slack-notify hook entirely from app.json.

Running the app

  • Run yarn or npm install
  • Run expo start, try it out.

The idea behind the 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.