Skip to content

Commit 4c57479

Browse files
fix: publish vsix CI flow
1 parent 13aa1ac commit 4c57479

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/release_and_publish_vsix.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,23 @@ jobs:
1515
with:
1616
node-version-file: package.json
1717

18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
20+
1821
- name: Get version from package.json
1922
id: get_version
2023
run: |
2124
VERSION=$(jq -r .version package.json)
2225
echo "version=$VERSION" >> $GITHUB_OUTPUT
2326
2427
- name: Install dependencies
25-
run: npm ci
28+
run: pnpm install
2629

2730
- name: Build VSIX package
28-
run: npm run package
31+
run: pnpm run package
32+
33+
- name: Rename extension file
34+
run: "mv extension.vsix postgres-language-server-${{ steps.get_version.outputs.version }}.vsix"
2935

3036
- name: Find VSIX file
3137
id: find_vsix

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
**/**/node_modules
22
node_modules
33
out
4-
.env
4+
.env
5+
extension.vsix

0 commit comments

Comments
 (0)