Skip to content

Commit 8bfcf8d

Browse files
committed
ci: fix packaged release artefact using the current version instead of latest
1 parent b3c34f1 commit 8bfcf8d

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
push:
10-
branches: ["main"]
10+
branches: ['main']
1111

1212
jobs:
1313
release:
@@ -26,16 +26,13 @@ jobs:
2626
- uses: actions/setup-node@v3
2727
with:
2828
node-version: 18
29-
cache: "npm"
29+
cache: 'npm'
3030

31-
- name: "Install dependencies"
31+
- name: 'Install dependencies'
3232
run: npm ci
3333

34-
- name: "Build syntaxes, client and server. "
34+
- name: 'Build syntaxes, client and server. '
3535
run: npx nx run-many --target=build
3636

37-
- name: "Package extension"
38-
run: npx vsce package
39-
40-
- name: "Semantic Release"
37+
- name: 'Semantic Release'
4138
run: npx semantic-release

.releaserc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
[
2020
"@semantic-release/exec",
2121
{
22+
"prepareCmd": "npx vsce package --no-git-tag-version ${nextRelease.version}",
2223
"publishCmd": "npx vsce publish --no-git-tag-version ${nextRelease.version}"
2324
}
2425
],

0 commit comments

Comments
 (0)