|
1 | | -const semanticRelease = require('semantic-release'); |
2 | | -const configPromise = require('./release.config.js'); |
| 1 | +const semanticRelease = require("semantic-release"); |
| 2 | +const configPromise = require("./release.config.js"); |
3 | 3 |
|
4 | 4 | configPromise.then((config) => { |
5 | 5 | const currentPackage = require(`${process.cwd()}/package.json`); |
6 | | - const isSDK = currentPackage.name === 'stream-chat-react-native-core'; |
| 6 | + const isSDK = currentPackage.name === "stream-chat-react-native-core"; |
7 | 7 |
|
8 | 8 | const newConfig = { |
9 | 9 | ...config, |
10 | | - branches: ['master'], |
| 10 | + branches: ["master"], |
11 | 11 | }; |
12 | 12 | if (process.env.GH_TOKEN || process.env.GITHUB_TOKEN) { |
13 | | - newConfig.plugins.push( |
14 | | - plugins.push([ |
15 | | - '@semantic-release/git', |
16 | | - { |
17 | | - assets: [ |
18 | | - `${process.cwd()}/package.json`, |
19 | | - `${process.cwd()}/yarn.lock`, |
20 | | - `${process.cwd()}/CHANGELOG.md`, |
21 | | - ], |
22 | | - message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', |
23 | | - }, |
24 | | - ]), |
25 | | - ); |
| 13 | + newConfig.plugins.push([ |
| 14 | + "@semantic-release/git", |
| 15 | + { |
| 16 | + assets: [ |
| 17 | + `${process.cwd()}/package.json`, |
| 18 | + `${process.cwd()}/yarn.lock`, |
| 19 | + `${process.cwd()}/CHANGELOG.md`, |
| 20 | + ], |
| 21 | + message: |
| 22 | + "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", |
| 23 | + }, |
| 24 | + ]); |
26 | 25 |
|
27 | 26 | if (isSDK) { |
28 | | - plugins.push('@semantic-release/github'); |
| 27 | + plugins.push("@semantic-release/github"); |
29 | 28 | } |
30 | 29 | } |
31 | 30 | return semanticRelease(newConfig); |
|
0 commit comments