Skip to content

Commit b4bb1b6

Browse files
committed
Upload sourcemaps for release builds
To allow us to reconstruct a stack trace, this will upload the sourcemaps for all release builds.
1 parent f6f8b68 commit b4bb1b6

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ jobs:
5959
name: vscode-codeql-extension
6060
path: artifacts
6161

62+
- name: Upload source maps
63+
uses: actions/upload-artifact@v3
64+
with:
65+
name: vscode-codeql-sourcemaps
66+
path: dist/vscode-codeql/out/*.map
67+
6268
# TODO Run tests, or check that a test run on the same branch succeeded.
6369

6470
- name: Create release

extensions/ql-vscode/gulpfile.ts/webpack.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export const config: webpack.Configuration = {
5454
MiniCssExtractPlugin.loader,
5555
{
5656
loader: "css-loader",
57+
options: {
58+
sourceMap: true,
59+
},
5760
},
5861
],
5962
},

0 commit comments

Comments
 (0)