Skip to content

Commit

Permalink
Skip installing dev deps in build workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Feb 22, 2024
1 parent 633a612 commit b3f7e9a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
key: cache-webpack-${{ github.base_ref || github.ref_name }}

- name: Install Dependencies
run: npm ci
run: npm ci --omit=dev

- name: Build with Docusaurus
run: npm run build
Expand Down
52 changes: 9 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@
"@docusaurus/preset-classic": "^3.1.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.1.1",
"esbuild-loader": "^3.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-medium-image-zoom": "^5.1.0",
"reading-time": "^1.3.0"
},
"devDependencies": {
"docs-to-pdf": "^0.6.2"
},
"browserslist": {
"production": [
">0.5%",
Expand All @@ -38,10 +42,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"docs-to-pdf": "^0.6.2",
"esbuild-loader": "^3.0.1",
"netlify-plugin-cache": "^1.0.3"
}
}

0 comments on commit b3f7e9a

Please sign in to comment.