Skip to content

Commit 224d826

Browse files
Update vscode-extension.md
1 parent 5c4dca0 commit 224d826

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

recipes/ci-cd/github-actions/workflows/vscode-extension.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ Copied from [cschleiden/vscode-github-actions](https://github.com/cschleiden/vsc
1818
node-version: '12'
1919

2020
- run: rm package-lock.json
21-
2221
- run: npm --no-git-tag-version version 1.0.${{ github.run_number }}
23-
2422
- run: npm install
25-
2623
- run: npm run package
2724

2825
- name: Create Release
@@ -48,3 +45,20 @@ Copied from [cschleiden/vscode-github-actions](https://github.com/cschleiden/vsc
4845
asset_content_type: application/vsix
4946
```
5047
48+
Here are the script commands:
49+
50+
- `package.json`
51+
```json
52+
{
53+
"scripts": {
54+
"clean": "rimraf dist out",
55+
"compile": "tsc -p .",
56+
"watch": "tsc -watch -p .",
57+
"package": "npm run clean && vsce package",
58+
"vscode:prepublish": "webpack --mode production",
59+
"webpack": "webpack --mode development",
60+
"webpack-dev": "webpack --mode development --watch",
61+
"test-compile": "tsc -p ."
62+
}
63+
}
64+
```

0 commit comments

Comments
 (0)