Skip to content

Commit e3b5427

Browse files
build: include dist in the release commit (#10564)
1 parent 35eb103 commit e3b5427

File tree

4 files changed

+101
-0
lines changed

4 files changed

+101
-0
lines changed

.releaserc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@semantic-release/github",
1717
["@semantic-release/git", {
1818
"assets": [
19+
"dist/*.{js,html,css}",
1920
"package.json",
2021
"package-lock.json"
2122
],

package-lock.json

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
"babel-plugin-transform-react-remove-prop-types": "=0.4.24",
133133
"body-parser": "^1.19.0",
134134
"cheerio": "=1.0.0",
135+
"copy-webpack-plugin": "13.0.1",
135136
"cors": "^2.8.5",
136137
"cross-env": "=7.0.3",
137138
"css-loader": "=7.1.2",

webpack/bundle.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const {
1414
WebpackBundleSizeAnalyzerPlugin,
1515
} = require("webpack-bundle-size-analyzer")
1616
const configBuilder = require("./_config-builder")
17+
const CopyWebpackPlugin = require("copy-webpack-plugin")
1718

1819
// import path from "path"
1920
// import { StatsWriterPlugin } from "webpack-stats-plugin"
@@ -43,6 +44,18 @@ const result = configBuilder(
4344
// display full duplicates information? (Default: `false`)
4445
verbose: false,
4546
}),
47+
new CopyWebpackPlugin({
48+
patterns: [
49+
{
50+
from: require.resolve("../dev-helpers/oauth2-redirect.html"),
51+
to: ".",
52+
},
53+
{
54+
from: require.resolve("../dev-helpers/oauth2-redirect.js"),
55+
to: ".",
56+
},
57+
],
58+
}),
4659
new WebpackBundleSizeAnalyzerPlugin("log.bundle-sizes.swagger-ui.txt"),
4760
// new StatsWriterPlugin({
4861
// filename: path.join("log.bundle-stats.swagger-ui.json"),

0 commit comments

Comments
 (0)