Skip to content

Commit

Permalink
storybook publish script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
palerdot committed Feb 29, 2024
1 parent d75fb04 commit 73f31ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .scripts/get_gh_pages_url.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
// This is an auto generated file with React CDK.
// Do not modify this file.

const parse = require('git-url-parse');
var ghUrl = process.argv[2];
const parsedUrl = parse(ghUrl);
// const parse = require('git-url-parse');
import parse from "git-url-parse"

const ghPagesUrl = 'https://' + parsedUrl.owner + '.github.io/' + parsedUrl.name;
console.log(ghPagesUrl);
var ghUrl = process.argv[2]
const parsedUrl = parse(ghUrl)

const ghPagesUrl = "https://" + parsedUrl.owner + ".github.io/" + parsedUrl.name
console.log(ghPagesUrl)
3 changes: 2 additions & 1 deletion .scripts/publish_storybook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ rm -rf .out || exit 0;
mkdir .out;

# run our compile script, discussed above
build-storybook -o .out
# build-storybook -o .out
npm run build-storybook

# go to the out directory and create a *new* Git repo
cd .out
Expand Down

0 comments on commit 73f31ff

Please sign in to comment.