-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: change to runCommand function to view stdout * fix: update script to build storybook for production * fix: tsconfig for elements to build storybook
- Loading branch information
Showing
12 changed files
with
58 additions
and
46 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 |
---|---|---|
@@ -1,16 +1,13 @@ | ||
const { execSync } = require('child_process') | ||
const semver = require('semver') | ||
const fs = require('fs') | ||
const path = require('path') | ||
const { runCommand } = require('../../../scripts/release/utils') | ||
|
||
const { npm_package_name } = process.env | ||
const packageJsonPath = path.resolve(__dirname, '../package.json') | ||
|
||
module.exports = () => { | ||
const remotePackageVersionStdOut = execSync(`yarn info ${npm_package_name} version`) | ||
.toString() | ||
.trim() | ||
.split('\n') | ||
const remotePackageVersionStdOut = runCommand('yarn', ['info', npm_package_name, 'version']).split('\n') | ||
let remotePackageVersion = '' | ||
|
||
// Ex of remotePackageVersionStdOut: ['0.0.0'] | ||
|
@@ -38,12 +35,12 @@ module.exports = () => { | |
parsedPackageJsonContent.version = bumpedVersion | ||
fs.writeFileSync(packageJsonPath, JSON.stringify(parsedPackageJsonContent, null, 2)) | ||
|
||
execSync(`git remote add sshOrigin [email protected]:${process.env.GITHUB_REPOSITORY}.git`) | ||
execSync('git config --global user.email "[email protected]"') | ||
execSync('git config --global user.name "Github Actions"') | ||
runCommand('git', ['remote', 'add', 'sshOrigin', `[email protected]:${process.env.GITHUB_REPOSITORY}.git`]) | ||
runCommand('git', ['config', '--global', 'user.email', '"[email protected]"']) | ||
runCommand('git', ['config', '--global', 'user.name', '"Github Actions"']) | ||
|
||
execSync('git add .') | ||
execSync(`git commit -m 'Update TypeScript definition - version: ${bumpedVersion}'`) | ||
execSync('yarn publish') | ||
execSync('git push -u sshOrigin HEAD:master') | ||
runCommand('git', ['add', '.']) | ||
runCommand('git', ['commit', '-m', `"Update TypeScript definition - version: ${bumpedVersion}"`]) | ||
runCommand('yarn', ['publish']) | ||
runCommand('git', ['push', '-u', 'sshOrigin', 'HEAD:master']) | ||
} |
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
5 changes: 2 additions & 3 deletions
5
packages/foundations-ts-definitions/scripts/handle-cronjob.js
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
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