-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
1,009 additions
and
899 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dist | ||
.yarn | ||
.yarn/* | ||
!.yarn/plugins | ||
.vscode |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
yarnPath: .yarn/releases/yarn-4.3.1.cjs | ||
yarnPath: .yarn/releases/yarn-4.4.0.cjs | ||
|
||
defaultSemverRangePrefix: '' |
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,23 @@ | ||
import { exec } from 'child_process'; | ||
|
||
const target = process.argv[2]; | ||
|
||
if (target !== 'react' && target !== 'base') throw new Error('Invalid target'); | ||
|
||
const execa = (command: string) => | ||
new Promise((resolve, reject) => | ||
exec(command, (err, stdout, stderr) => | ||
err ? reject(stderr) : resolve(stdout), | ||
), | ||
); | ||
|
||
const deploy = async (target: 'base' | 'react') => { | ||
console.log('Deploying', target); | ||
const packageJson = await import(`../packages/${target}/package.json`); | ||
const tagName = `react-v${packageJson.version}`; | ||
await execa(`git tag ${tagName}`); | ||
await execa(`git push origin ${tagName}`); | ||
console.log('Tag pushed', tagName); | ||
}; | ||
|
||
deploy(target); |
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