Skip to content

Commit 7b241b1

Browse files
authored
chore: Run vsce via npx (#47)
Run vsce via npx without installing it globally
1 parent dd12476 commit 7b241b1

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16-
- name: Pre-requisities
17-
run: sudo npm install -g vsce
18-
- run: npm install
16+
- name: Install dependencies
17+
run: npm install
1918

2019
- name: Update version and changelog
2120
run: npx semantic-release --dry-run
2221
env:
2322
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2423
- name: Package VSIX
25-
run: vsce package
24+
run: npx vsce package
2625
- uses: actions/upload-artifact@v2
2726
with:
2827
name: VSIX
@@ -44,6 +43,6 @@ jobs:
4443
env:
4544
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4645
- name: Publish
47-
run: vsce publish
46+
run: npx vsce publish
4847
env:
4948
VSCE_PAT: $

0 commit comments

Comments
 (0)