Skip to content

Commit 9fb9d47

Browse files
committed
ci: try to use the vsce package command
1 parent 54ddd1d commit 9fb9d47

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/publish.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ jobs:
1919
registry-url: https://registry.npmjs.org/
2020
node-version: 20.x
2121
cache: yarn
22-
- run: yarn install --immutable
23-
- run: yarn run compile
22+
- name: Install dependencies
23+
run: yarn install --immutable
24+
- name: Build package
25+
run: npx vsce package
2426
- uses: softprops/action-gh-release@v2
2527
with:
2628
generate_release_notes: true

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"test": "yarn run compile && sh ./scripts/e2e.sh",
3131
"format": "prettier --write .",
3232
"format:check": "prettier --check . server client",
33-
"postversion": "git push --tags && git push"
33+
"postversion": "git push --tags && git push",
34+
"vscode:prepublish": "yarn run compile"
3435
},
3536
"activationEvents": [
3637
"onLanguage:publicodes"

0 commit comments

Comments
 (0)