Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ jobs:

- run: npm run build:prod:jetbrains

- run: zip -r dist-${{ github.event.release.tag_name }}.zip dist

- uses: softprops/action-gh-release@v2
with:
files: dist-jetbrains-${{ github.event.release.tag_name }}.zip
files: dist/dist-*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -98,7 +96,9 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: build
path: dist/
path: |
dist/
!dist/dist-*.zip

- uses: actions/upload-artifact@v4
with:
Expand All @@ -110,11 +110,9 @@ jobs:
name: dockerfile
path: Dockerfile

- run: zip -r dist-web-${{ github.event.release.tag_name }}.zip dist

- uses: softprops/action-gh-release@v2
with:
files: dist-web-jetbrains-${{ github.event.release.tag_name }}.zip
files: dist/dist-*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
99 changes: 98 additions & 1 deletion package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"storybook": "storybook dev -p 6006",
"start": "npm run storybook",
"build-storybook": "storybook build",
"build:dev": "webpack --progress --config webpack.dev.ts",
"build:dev": "webpack --progress --config webpack.dev.ts",
"build:dev:jetbrains": "webpack --progress --config webpack.dev.ts --env platform=JetBrains",
"build:dev:web": "webpack --config webpack.dev.ts --env platform=Web",
"build:prod": "webpack --progress --config webpack.prod.ts",
Expand Down Expand Up @@ -64,6 +64,7 @@
"@types/react-transition-group": "^4.4.5",
"@types/semver": "^7.5.6",
"@types/uuid": "^9.0.8",
"@types/zip-webpack-plugin": "^3.0.6",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.3.0",
"babel-loader": "^9.1.3",
Expand Down Expand Up @@ -95,7 +96,8 @@
"typescript-plugin-styled-components": "^2.0.0",
"webpack": "^5.94.0",
"webpack-cli": "^5.0.1",
"webpack-merge": "^5.8.0"
"webpack-merge": "^5.8.0",
"zip-webpack-plugin": "^4.0.2"
},
"dependencies": {
"@floating-ui/react": "^0.25.1",
Expand Down
17 changes: 16 additions & 1 deletion webpack.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import CopyWebpackPlugin from "copy-webpack-plugin";
import HtmlWebpackPlugin from "html-webpack-plugin";
import path from "path";
import { Configuration as WebpackConfiguration } from "webpack";
import ZipPlugin from "zip-webpack-plugin";
import { WebpackEnv, appData } from "./apps";
import packageJson from "./package.json";

interface PackageJson {
version: string;
}

const getConfig = (env: WebpackEnv): WebpackConfiguration => {
const entriesToBuild: Record<string, string> = env.app
Expand Down Expand Up @@ -68,7 +74,16 @@ const getConfig = (env: WebpackEnv): WebpackConfiguration => {
});
})
]
: [])
: []),
new ZipPlugin({
filename: [
"dist",
(env.platform ?? "").toLocaleLowerCase(),
`v${(packageJson as PackageJson).version}.zip`
]
.filter(Boolean)
.join("-")
})
]
};
};
Expand Down
Loading