-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split code blocks of installation instructions (#611)
Co-authored-by: Ifiok Jr <ifiokotung@gmail.com>
- Loading branch information
Showing
4 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* This script edits the `/.changeset/config.json` file so that it doesn't need | ||
* the GITHUB_TOKEN to be available in order to build the changeset. | ||
* | ||
* This allows PR's which don't have access to the `GITHUB_TOKEN` to still pass. | ||
* | ||
* @packageDocumentation | ||
*/ | ||
|
||
const writeJson = require('write-json-file'); | ||
const chalk = require('chalk'); | ||
const { baseDir } = require('./helpers'); | ||
|
||
async function main() { | ||
if (!process.env.CI) { | ||
console.log( | ||
chalk`{red Attempted to edit the changeset config in a non CI environment.} Exiting...`, | ||
); | ||
|
||
return; | ||
} | ||
|
||
const changesetConfig = require('../../.changeset/config.json'); | ||
delete changesetConfig.changelog; | ||
await writeJson(baseDir('.changeset', 'config.json'), changesetConfig); | ||
|
||
console.log(chalk`{green Successfully updated the CI configuration. }`); | ||
} | ||
|
||
main(); |
6c6a6f7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://remirror.io as production
🚀 Deployed on https://5f4c9bf383248de2eff6b721--remirror.netlify.app