Skip to content

Commit

Permalink
feat: integrate @kibibit/announce-it
Browse files Browse the repository at this point in the history
  • Loading branch information
ZimGil committed Jul 11, 2019
1 parent cb2a476 commit 4031080
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@ You have to create a [Developer Account on Twitter](https://developer.twitter.co
}
// ...
```
- If executed with @semanic-release/exec:
```js
// ...
"plugins":
// ...
[
"@semantic-release/exec",
{
"success": "npm run announce -- --branch ${options.branch}"
}
]
// ...
// ...
```
- If installed as a project dependency, you can run with npx:
```bash
# should be ran inside your project
Expand All @@ -81,7 +95,8 @@ const announceIt = new KbAnnounceIt({
accessTokenKey: 'TWITTER_ACCESS_KEY',
accessTokenSecret: 'TWITTER_ACCESS_SECRET',
consumerKey: 'TWITTER_CONSUMER_KEY',
consumerSecret: 'TWITTER_CONSUMER_SECRET'
consumerSecret: 'TWITTER_CONSUMER_SECRET',
branch: 'CURRENT_BRANCH'
});

const myPackage: PackageDetails = require('./package');
Expand Down

0 comments on commit 4031080

Please sign in to comment.