Skip to content

Commit

Permalink
fix(ci): fixed storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
gearonix committed Aug 19, 2023
1 parent b49a947 commit fd8408e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 37 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,8 @@ jobs:
- name: Building storybook
run: yarn dlx nx run ui:storybook:build
- name: Pushing to build-storybook branch
- uses: JamesIves/github-pages-deploy-action@v4
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/storybook/ui
branch: storybook-build
testing:
name: Testing project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Node.js and yarn setup
- name: Installing Node.js 19.x
uses: actions/setup-node@v3
with:
node-version: 19.x
# Installing deps
- name: Installing dependencies
run: yarn install
# Main rules
- name: Testing storybook
run: yarn dlx nx run ui:storybook:test

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion libs/client-shared/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineConfig({
plugins: [
dts({
entryRoot: 'src',
tsConfigFilePath: path.join(__dirname, 'tsconfig.consts.json'),
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
skipDiagnostics: true
}),
react(),
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
}
},
"scripts": {
"serve": "nx run-many -t=serve -p client server --parallel",
"build": "nx run-many -t=build -p client server --parallel",
"lint": "nx run-many --targets=lint --all",
"test": "nx run-many --targets=test --all",
"serve": "nx run-many -t=serve -p client server --parallel=2",
"build": "nx run-many -t=build -p client server --parallel=2",
"lint": "nx run-many --targets=lint --all --parallel=8",
"test": "nx run-many --targets=test --all --parallel=8",
"dep-graph": "nx dep-graph",
"preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('You must use Yarn to install, not NPM')\"",
"prepare": "husky install",
Expand Down Expand Up @@ -160,7 +160,6 @@
"ts-jest": "^29.1.0",
"ts-morph": "^19.0.0",
"ts-node": "10.9.1",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"typescript": "~5.1.3",
"vite": "^4.3.9",
"vite-plugin-dts": "~2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/ts-morph/remove-all-console-logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const project = new Project({
})

const files = project.addSourceFilesFromTsConfig(
'../../libs/editor/tsconfig.consts.json'
'../../libs/editor/tsconfig.lib.json'
)

console.log(`Success. Number of files: ${files.length}`)
Expand Down
12 changes: 0 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,6 @@ __metadata:
ts-jest: ^29.1.0
ts-morph: ^19.0.0
ts-node: 10.9.1
tsconfig-paths-webpack-plugin: ^4.1.0
tslib: ^2.6.0
typescript: ~5.1.3
uuid: ^9.0.0
Expand Down Expand Up @@ -26205,17 +26204,6 @@ __metadata:
languageName: node
linkType: hard

"tsconfig-paths-webpack-plugin@npm:^4.1.0":
version: 4.1.0
resolution: "tsconfig-paths-webpack-plugin@npm:4.1.0"
dependencies:
chalk: ^4.1.0
enhanced-resolve: ^5.7.0
tsconfig-paths: ^4.1.2
checksum: f6e9a8a407e1a405b0f2531184296d9f033cb4fe5837282b757ab4a2f4cd82a3117e62c4b86d56c7d47749c7f1345aa438ec6417dbf64a0ec74a292fe9eae44d
languageName: node
linkType: hard

"tsconfig-paths@npm:^3.14.1":
version: 3.14.2
resolution: "tsconfig-paths@npm:3.14.2"
Expand Down

0 comments on commit fd8408e

Please sign in to comment.